From adeb554d6230a38ecc8ccfe32653e5560489aeb9 Mon Sep 17 00:00:00 2001 From: MajoBerger Date: Thu, 29 Feb 2024 08:35:56 +0100 Subject: [PATCH 1/2] add run link --- .github/workflows/reusable-docker-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reusable-docker-build.yml b/.github/workflows/reusable-docker-build.yml index 870cad225ec5..6ee11c7d8dd4 100644 --- a/.github/workflows/reusable-docker-build.yml +++ b/.github/workflows/reusable-docker-build.yml @@ -108,7 +108,7 @@ jobs: - name: Add version if: ${{ inputs.run_python_version_script }} - run: python scripts/sourceversion.py > ${{ inputs.python_version_script_dest }} + run: python scripts/sourceversion.py ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} > ${{ inputs.python_version_script_dest }} # https://github.com/docker/setup-buildx-action - name: Setup Docker Buildx From 8bcee50e02d6c2c8fa58c6e28aef42b4c0545123 Mon Sep 17 00:00:00 2001 From: MajoBerger Date: Thu, 29 Feb 2024 10:28:12 +0100 Subject: [PATCH 2/2] split to reuse run_id --- .github/workflows/reusable-docker-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reusable-docker-build.yml b/.github/workflows/reusable-docker-build.yml index 6ee11c7d8dd4..18c28a4a57d1 100644 --- a/.github/workflows/reusable-docker-build.yml +++ b/.github/workflows/reusable-docker-build.yml @@ -108,7 +108,7 @@ jobs: - name: Add version if: ${{ inputs.run_python_version_script }} - run: python scripts/sourceversion.py ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} > ${{ inputs.python_version_script_dest }} + run: python scripts/sourceversion.py ${{ github.server_url }}/${{ github.repository }}/actions/runs/ ${{ github.run_id }} > ${{ inputs.python_version_script_dest }} # https://github.com/docker/setup-buildx-action - name: Setup Docker Buildx