Skip to content

Commit e9c41e3

Browse files
committed
Try to use input ref for drift detection plan file
If the caller of the apply workflow supplied a ref as input then we need to use that when creating the drift file.
1 parent ab738cc commit e9c41e3

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)