From 03513bb1e49514cbed993fbfcd6e7e4036147d29 Mon Sep 17 00:00:00 2001 From: Torsten Ueberschar Date: Sat, 28 Feb 2026 23:35:05 +0100 Subject: [PATCH] add checkout-ref paramter --- .github/actions/build-and-push-dotnet/action.yaml | 5 +++++ .github/actions/build-and-push/action.yaml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.github/actions/build-and-push-dotnet/action.yaml b/.github/actions/build-and-push-dotnet/action.yaml index 3250461..ff4161e 100644 --- a/.github/actions/build-and-push-dotnet/action.yaml +++ b/.github/actions/build-and-push-dotnet/action.yaml @@ -12,6 +12,10 @@ inputs: description: Override image tag (defaults to standard tags) required: false default: "" + checkout_ref: + description: Git ref to checkout before build (e.g. refs/tags/v1.2.3) + required: false + default: "" dockerfile: description: Path to Dockerfile required: false @@ -42,6 +46,7 @@ runs: with: fetch-depth: 0 fetch-tags: true + ref: ${{ inputs.checkout_ref != '' && inputs.checkout_ref || '' }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 diff --git a/.github/actions/build-and-push/action.yaml b/.github/actions/build-and-push/action.yaml index 2466074..f38d86e 100644 --- a/.github/actions/build-and-push/action.yaml +++ b/.github/actions/build-and-push/action.yaml @@ -12,6 +12,10 @@ inputs: description: Override image tag (defaults to standard tags) required: false default: "" + checkout_ref: + description: Git ref to checkout before build (e.g. refs/tags/v1.2.3) + required: false + default: "" dockerfile: description: Path to Dockerfile required: false @@ -38,6 +42,7 @@ runs: with: fetch-depth: 0 fetch-tags: true + ref: ${{ inputs.checkout_ref != '' && inputs.checkout_ref || '' }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3