From 91832096fb93e9721a7378f84c080b3443dc7993 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Thu, 5 Nov 2026 14:17:48 +0100 Subject: [PATCH 1/2] promote releases into openvox & openbolt Signed-off-by: Tim Meusel --- .github/workflows/release.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 07c53431..b545673c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,3 +60,31 @@ jobs: project_name: ${{ matrix.project_name }} branch: ${{ matrix.branch }} secrets: inherit + + promote: + needs: + - get_version + - build + runs-on: ubuntu-26.04 + permissions: {} + strategy: + fail-fast: false + matrix: + include: + - repo: OpenVoxProject/openvox + branch: main + - repo: OpenVoxProject/openvox + branch: '8.x' + - repo: OpenVoxProject/openbolt + branch: main + steps: + - name: Trigger promote workflow in ${{ matrix.repo }} (${{ matrix.branch }}) + env: + GH_TOKEN: ${{ secrets.OPENVOXBOT_TRIGGER_WORKFLOWS }} + run: | + gh workflow run promote.yml \ + --repo "${{ matrix.repo }}" \ + --ref main \ + -f component=puppet-runtime \ + -f ref="${{ needs.get_version.outputs.version }}" \ + -f branch="${{ matrix.branch }}" From 4d51eca18ee119ca1c5faf9cd40470118ffcc183 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Thu, 5 Nov 2026 14:26:07 +0100 Subject: [PATCH 2/2] release: wait until promote PRs are done Signed-off-by: Tim Meusel --- .github/workflows/release.yml | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b545673c..d37c088d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -79,12 +79,30 @@ jobs: branch: main steps: - name: Trigger promote workflow in ${{ matrix.repo }} (${{ matrix.branch }}) + id: dispatch env: GH_TOKEN: ${{ secrets.OPENVOXBOT_TRIGGER_WORKFLOWS }} + REPO: ${{ matrix.repo }} + BRANCH: ${{ matrix.branch }} + VERSION: ${{ needs.get_version.outputs.version }} run: | - gh workflow run promote.yml \ - --repo "${{ matrix.repo }}" \ - --ref main \ - -f component=puppet-runtime \ - -f ref="${{ needs.get_version.outputs.version }}" \ - -f branch="${{ matrix.branch }}" + # return_run_details makes the API respond with the run id and URL + response=$(gh api --method POST \ + "repos/${REPO}/actions/workflows/promote.yml/dispatches" \ + -f ref=main \ + -F return_run_details=true \ + -f 'inputs[component]=puppet-runtime' \ + -f "inputs[ref]=${VERSION}" \ + -f "inputs[branch]=${BRANCH}") + run_id=$(jq -r '.workflow_run_id' <<< "${response}") + run_url=$(jq -r '.html_url' <<< "${response}") + echo "run_id=${run_id}" >> "$GITHUB_OUTPUT" + echo "Triggered ${run_url}" + echo "- [${REPO} (${BRANCH})](${run_url})" >> "$GITHUB_STEP_SUMMARY" + + - name: Wait for promote workflow in ${{ matrix.repo }} (${{ matrix.branch }}) + env: + GH_TOKEN: ${{ secrets.OPENVOXBOT_TRIGGER_WORKFLOWS }} + REPO: ${{ matrix.repo }} + RUN_ID: ${{ steps.dispatch.outputs.run_id }} + run: gh run watch "${RUN_ID}" --repo "${REPO}" --exit-status