From 0d7824bbe9c052a6424494aaf9b94192acb2e941 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 --- .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 19777d9..1004631 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@v7 @@ -62,6 +64,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v7 + with: + ref: ${{ inputs.version }} - name: Setup Go uses: actions/setup-go@v7 @@ -95,8 +99,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/.