Skip to content

Commit a927c90

Browse files
committed
github: give tag and pdf names unique to owner fork and branch
The job number is not unique for different forks and this causes issues with the tags which are global. Use the repo owners github name in the tag and the branch as well. Still include the job number to make unique. Also change the pdf file name so we know where it came from. Signed-off-by: Bill Mills <bill.mills@linaro.org>
1 parent 15f45be commit a927c90

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/deploy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
env:
2222
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2323
with:
24-
tag_name: virio-msg-draft-v${{ github.run_number }} # Or a more meaningful tag
24+
tag_name: ${{github.ref_name}}-${{ github.repository_owner }}-draft-v${{ github.run_number }}
2525
release_name: Draft ${{ github.run_number }}
2626
draft: false
2727
prerelease: false
@@ -33,5 +33,5 @@ jobs:
3333
with:
3434
upload_url: ${{ steps.create_release.outputs.upload_url }}
3535
asset_path: virtio-v1.4-wd01.pdf
36-
asset_name: virtio-v1.4-wd01.pdf
36+
asset_name: ${{github.ref_name}}-${{ github.repository_owner }}-draft-v${{ github.run_number }}.pdf
3737
asset_content_type: application/pdf

0 commit comments

Comments
 (0)