From 4e209aab63356b2e7fcc5fed11cb9d4e564947c9 Mon Sep 17 00:00:00 2001 From: rokatyy Date: Thu, 3 Jul 2025 10:29:33 +0100 Subject: [PATCH] [CI] Add support to run workflow from development branch on specific branch --- .github/workflows/release.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 82080d071a..15ea5d9a3b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -250,6 +250,11 @@ jobs: run: echo "NUCLIO_LABEL=${{ needs.prepare-inputs.outputs.version }}" >> $GITHUB_ENV - uses: actions/checkout@v4 + with: + # checkout to the specified branch to be able to run workflow from development branch + # and release from the specified branch + ref: ${{ github.event.inputs.branch }} + fetch-depth: 0 - uses: actions/setup-go@v5 with: @@ -329,6 +334,11 @@ jobs: run: echo "NUCLIO_LABEL=${{ needs.prepare-inputs.outputs.version }}" >> $GITHUB_ENV - uses: actions/checkout@v4 + with: + # checkout to the specified branch to be able to run workflow from development branch + # and release from the specified branch + ref: ${{ github.event.inputs.branch }} + fetch-depth: 0 - uses: actions/setup-go@v5 with: