Skip to content

Commit 4faf28d

Browse files
authored
Try to use input ref for drift detection plan file (#28)
If the caller of the apply workflow supplied a ref as input then we need to use that when creating the drift file.
2 parents ab738cc + e9c41e3 commit 4faf28d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/apply.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ jobs:
137137
138138
- name: Create drift plan
139139
run: |
140-
jq -n --arg sha "${{ github.event.pull_request.head.sha || github.sha }}" --arg account "$AWS_ACCOUNT_ID" '{sha: $sha, drift: false, aws_account_id: $account}' > /tmp/drift.plan.json
140+
jq -n --arg sha "${{ inputs.ref || github.event.pull_request.head.sha || github.sha }}" --arg account "$AWS_ACCOUNT_ID" '{sha: $sha, drift: false, aws_account_id: $account}' > /tmp/drift.plan.json
141141
142142
- name: Upload drift plan to S3
143143
run: |

0 commit comments

Comments
 (0)