Skip to content

Commit fbe74a4

Browse files
committed
chore: Upgrade artifact management actions in Terraform workflow
- Updated the GitHub Actions workflow to use version 4 of the upload and download artifact actions, enhancing compatibility and performance. - Ensured that the artifact management process remains consistent during the Terraform plan and apply stages.
1 parent 993388c commit fbe74a4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎.github/workflows/terraform.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ jobs:
180180
# plan ジョブで作成した tfplan を apply ジョブに引き渡すためアーティファクトとして保存
181181
# main push 時のみアップロード(PR では apply は実行しない)
182182
- name: Upload plan artifact
183-
uses: actions/upload-artifact@v3
183+
uses: actions/upload-artifact@v4
184184
if: steps.plan.outcome == 'success' && github.ref == 'refs/heads/main' && github.event_name == 'push'
185185
with:
186186
name: tfplan-${{ matrix.environment }}
@@ -254,7 +254,7 @@ jobs:
254254

255255
# plan ジョブで保存した tfplan をダウンロード(PR で表示した内容と同一の変更を適用)
256256
- name: Download plan artifact
257-
uses: actions/download-artifact@v3
257+
uses: actions/download-artifact@v4
258258
with:
259259
name: tfplan-dev
260260
path: terraform/environments/dev
@@ -300,7 +300,7 @@ jobs:
300300

301301
# plan ジョブで保存した tfplan をダウンロード(PR で表示した内容と同一の変更を適用)
302302
- name: Download plan artifact
303-
uses: actions/download-artifact@v3
303+
uses: actions/download-artifact@v4
304304
with:
305305
name: tfplan-prod
306306
path: terraform/environments/prod

0 commit comments

Comments
 (0)