Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump upload-artifact to v4 #82

Merged
merged 17 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/test-changes-exists-drift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ jobs:
actual: "${{ needs.test.outputs.result }}"

- name: Download Artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: metadata
pattern: metadata-*
merge-multiple: true

- name: Display structure of downloaded files
id: metadata
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test-failed-plan-drift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ jobs:
actual: "${{ needs.test.outputs.result }}"

- name: Download Artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: metadata
pattern: metadata-*
merge-multiple: true

- name: Display structure of downloaded files
id: metadata
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test-no-changes-drift-more.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ jobs:
time: '30s'

- name: Download Artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: metadata
pattern: metadata-*
merge-multiple: true

- name: Display structure of downloaded files
id: metadata
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test-no-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ jobs:
actual: "${{ needs.test.outputs.result }}"

- name: Download Artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: metadata
pattern: metadata-*
merge-multiple: true

- name: Display structure of downloaded files
id: metadata
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test-settings-action-disabled-drift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ jobs:
actual: "${{ needs.test.outputs.result }}"

- name: Download Artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: metadata
pattern: metadata-*
merge-multiple: true

- name: Display structure of downloaded files
id: metadata
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test-settings-action-disabled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ jobs:
actual: "${{ needs.test.outputs.result }}"

- name: Download Artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: metadata
pattern: metadata-*
merge-multiple: true

- name: Display structure of downloaded files
id: metadata
Expand Down
12 changes: 10 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -401,11 +401,19 @@ runs:
echo "result=\"\"" >> $GITHUB_OUTPUT
fi

- name: Generate a unique id
id: generate
shell: bash
run: |
echo "rand=$(openssl rand -hex 5)" >> "$GITHUB_OUTPUT"

- name: Upload Artifacts
if: ${{ steps.atmos-github-actions-enabled.outputs.value == 'true' && inputs.drift-detection-mode-enabled == 'true' }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: metadata
# The name of the artifact needs to be unique for every job run!
# This name is filtered in cloudposse/github-action-atmos-terraform-drift-detection by the "metadata-*" prefix
name: metadata-${{ github.run_id }}-${{ steps.generate.outputs.rand }}
path: metadata
retention-days: ${{ inputs.metadata-retention-days }}

Expand Down
Loading