From 1e091f4034e2bb584c69ce169f2f889b0af1853c Mon Sep 17 00:00:00 2001 From: Alper Rifat Ulucinar Date: Tue, 3 Nov 2026 20:49:43 +0000 Subject: [PATCH] Name the build checkout step after the published repository and version Check out the requested version in the build job and include the repository and version in the step name, so that a publish run triggered via workflow_dispatch can be identified from its job steps. Signed-off-by: Alper Rifat Ulucinar (cherry picked from commit 01cb32822e247d7ea4e5712e6832e6525e4edf3c) --- .github/workflows/ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a8f373e..82a32e0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,6 +42,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v7 + with: + ref: ${{ inputs.version }} - name: Setup Go uses: actions/setup-go@v6 @@ -60,6 +62,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v7 + with: + ref: ${{ inputs.version }} - name: Setup Go uses: actions/setup-go@v6 @@ -93,8 +97,10 @@ jobs: version: ${{ env.DOCKER_BUILDX_VERSION }} install: true - - name: Checkout + - name: Checkout ${{ github.repository }} ${{ inputs.version }} uses: actions/checkout@v7 + with: + ref: ${{ inputs.version }} # We ask Docker to use GitHub Action's native caching support to speed up # the build, per https://docs.docker.com/build/cache/backends/gha/.