From a927c90a178d3bf05cb73dd9f5b3ce88880945ed Mon Sep 17 00:00:00 2001 From: Bill Mills Date: Mon, 16 Jun 2025 11:07:03 -0400 Subject: [PATCH] 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 --- .github/workflows/deploy.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 53e77851..fec4910f 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -21,7 +21,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: virio-msg-draft-v${{ github.run_number }} # Or a more meaningful tag + tag_name: ${{github.ref_name}}-${{ github.repository_owner }}-draft-v${{ github.run_number }} release_name: Draft ${{ github.run_number }} draft: false prerelease: false @@ -33,5 +33,5 @@ jobs: with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: virtio-v1.4-wd01.pdf - asset_name: virtio-v1.4-wd01.pdf + asset_name: ${{github.ref_name}}-${{ github.repository_owner }}-draft-v${{ github.run_number }}.pdf asset_content_type: application/pdf