From b434a1f4e7d803f7e852858ab07c06d2932c4aed Mon Sep 17 00:00:00 2001 From: Friedrich Date: Wed, 7 Feb 2024 10:45:53 +0100 Subject: [PATCH] pass-commit-ref-as-input (#70) --- .github/workflows/trigger-prow-build-job-reusable.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/trigger-prow-build-job-reusable.yml b/.github/workflows/trigger-prow-build-job-reusable.yml index 02b2b96..a199974 100644 --- a/.github/workflows/trigger-prow-build-job-reusable.yml +++ b/.github/workflows/trigger-prow-build-job-reusable.yml @@ -3,6 +3,10 @@ name: Trigger prow build job (reusable) on: workflow_call: inputs: + COMMIT_REF: + required: true + type: string + description: The commit ref for the `wait-for-commit-status-action` action. This should be the branch name from where the release was triggered. VERSION: required: true type: string @@ -63,6 +67,6 @@ jobs: GITHUB_REPO: ${{ github.event.repository.name }} with: context: "${{ inputs.CONTEXT }}" - commit_ref: ${{ GITHUB_REF_NAME }} # the name of the release branch. + commit_ref: ${{ inputs.COMMIT_REF }} timeout: ${{ inputs.TIMEOUT }} check_interval: ${{ inputs.INTERVAL }}