Skip to content

Commit

Permalink
compatible: Add run attempt number to logs artifact name (#112)
Browse files Browse the repository at this point in the history
Closes #102
  • Loading branch information
carlcsaposs-canonical committed Dec 12, 2023
1 parent 450cba3 commit 9ab9063
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_charm_without_cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:
if: ${{ failure() && steps.pack.outcome == 'failure' }}
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.artifact-name }}-charmcraft-build-logs
name: ${{ inputs.artifact-name }}-charmcraft-build-logs-attempt-${{ github.run_attempt }}
path: ~/.local/state/charmcraft/log/
if-no-files-found: error
- name: Upload charm package
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_charms_with_cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ jobs:
if: ${{ failure() && steps.pack.outcome == 'failure' }}
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.artifact-name }}-charmcraft-build-logs
name: ${{ inputs.artifact-name }}-charmcraft-build-logs-attempt-${{ github.run_attempt }}
path: ~/.local/state/charmcraft/log/
if-no-files-found: error
- run: touch .empty
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_snap_without_cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
if: ${{ failure() && steps.pack.outcome == 'failure' }}
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.artifact-name }}-snapcraft-build-logs
name: ${{ inputs.artifact-name }}-snapcraft-build-logs-attempt-${{ github.run_attempt }}
path: ~/.local/state/snapcraft/log/
if-no-files-found: error
- name: Upload snap package
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration_test_charm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ jobs:
if: ${{ success() || (failure() && steps.tests.outcome == 'failure') }}
uses: actions/upload-artifact@v3
with:
name: intergration-test-charm-logs-${{ inputs.cloud }}-juju-${{ inputs.juju-agent-version || inputs.juju-snap-channel }}
name: intergration-test-charm-logs-${{ inputs.cloud }}-juju-${{ inputs.juju-agent-version || inputs.juju-snap-channel }}-attempt-${{ github.run_attempt }}
path: ~/logs/
if-no-files-found: error
- name: Disk usage
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration_test_charm_self_hosted.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ jobs:
if: ${{ success() || (failure() && steps.tests.outcome == 'failure') }}
uses: actions/upload-artifact@v3
with:
name: intergration-test-charm-logs-${{ inputs.cloud }}-juju-${{ inputs.juju-agent-version || inputs.juju-snap-channel }}
name: intergration-test-charm-logs-${{ inputs.cloud }}-juju-${{ inputs.juju-agent-version || inputs.juju-snap-channel }}-attempt-${{ github.run_attempt }}
path: ~/logs/
if-no-files-found: error
- name: Disk usage
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_charm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
if: ${{ failure() && steps.release.outcome == 'failure' }}
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.artifact-name }}-charmcraft-release-logs
name: ${{ inputs.artifact-name }}-charmcraft-release-logs-attempt-${{ github.run_attempt }}
path: ~/.local/state/charmcraft/log/
if-no-files-found: error
- name: Create GitHub release
Expand Down

0 comments on commit 9ab9063

Please sign in to comment.