Skip to content

Commit c197cc5

Browse files
committed
Fix artifact name.
Signed-off-by: Thomas Alexander <talexander@nvidia.com>
1 parent 6f781c6 commit c197cc5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/actions/ccache-push/action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,17 @@ runs:
122122
echo "Pushed ccache to $image:$tag"
123123
echo "pushed=true" >> $GITHUB_OUTPUT
124124
125+
- name: Generate unique artifact name
126+
if: always() && inputs.upload-log == 'true'
127+
id: artifact
128+
shell: bash
129+
run: echo "name=ccache-log-${{ inputs.cache-key }}-$RANDOM" >> $GITHUB_OUTPUT
130+
125131
- name: Upload ccache log
126132
if: always() && inputs.upload-log == 'true'
127133
uses: actions/upload-artifact@v4
128134
with:
129-
name: ccache-log-${{ inputs.cache-key }}-${{ github.run_attempt }}
135+
name: ${{ steps.artifact.outputs.name }}
130136
path: ${{ github.workspace }}/ccache.log
131137
retention-days: 1
132138
if-no-files-found: ignore

0 commit comments

Comments
 (0)