Skip to content

Commit 54247a6

Browse files
authored
Merge pull request #264 from 100-hours-a-week/feat/v3-k8s-iac
fix: short SHA checkout 지원
2 parents 54bafde + 2bc0f4c commit 54247a6

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/terraform-v3-k8s.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,12 @@ jobs:
4545
steps:
4646
- uses: actions/checkout@v4
4747
with:
48-
ref: ${{ inputs.ref || '' }}
4948
fetch-depth: 0
5049

50+
- name: Checkout ref
51+
if: inputs.ref != ''
52+
run: git checkout ${{ inputs.ref }}
53+
5154
- uses: aws-actions/configure-aws-credentials@v4
5255
with:
5356
role-to-assume: ${{ secrets.TF_AWS_ROLE_ARN }}
@@ -153,9 +156,11 @@ jobs:
153156
steps:
154157
- uses: actions/checkout@v4
155158
with:
156-
ref: ${{ inputs.ref }}
157159
fetch-depth: 0
158160

161+
- name: Checkout ref
162+
run: git checkout ${{ inputs.ref }}
163+
159164
- uses: aws-actions/configure-aws-credentials@v4
160165
with:
161166
role-to-assume: ${{ secrets.TF_AWS_ROLE_ARN }}
@@ -194,9 +199,11 @@ jobs:
194199
steps:
195200
- uses: actions/checkout@v4
196201
with:
197-
ref: ${{ inputs.ref }}
198202
fetch-depth: 0
199203

204+
- name: Checkout ref
205+
run: git checkout ${{ inputs.ref }}
206+
200207
- uses: aws-actions/configure-aws-credentials@v4
201208
with:
202209
role-to-assume: ${{ secrets.TF_AWS_ROLE_ARN }}

0 commit comments

Comments
 (0)