From 1ccfb12aabde5e47afd8370848774c50a04bcd3e Mon Sep 17 00:00:00 2001 From: tobias-tengler <45513122+tobias-tengler@users.noreply.github.com> Date: Tue, 26 May 2026 16:26:00 +0200 Subject: [PATCH 1/2] Trigger Azure DevOps extension release --- .github/workflows/release.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f049c6c18c2..ab9148500ab 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -700,3 +700,35 @@ jobs: is_stable: ${{ needs.compute-release-context.outputs.is_stable }} is_active_major: ${{ needs.compute-release-context.outputs.is_active_major }} token: ${{ steps.app-token.outputs.token }} + + update-azure-pipelines-extension: + name: 🔄 Update Azure Pipelines Extension + runs-on: ubuntu-latest + needs: [compute-release-context, publish-release] + if: needs.compute-release-context.outputs.is_stable == 'true' + + steps: + - name: 📦 Checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + sparse-checkout: .github/actions + show-progress: false + + - name: 🔐 Create GitHub App token + id: app-token + uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3 + with: + app-id: ${{ secrets.ACTIONS_APP_ID }} + private-key: ${{ secrets.ACTIONS_APP_PRIVATE_KEY }} + owner: ChilliCream + repositories: nitro-azure-pipelines-tasks + + - name: 🔄 Run extension release workflow + uses: ./.github/actions/dispatch-and-watch-workflow + with: + repo: ChilliCream/nitro-azure-pipelines-tasks + workflow: release.yaml + version: ${{ needs.compute-release-context.outputs.git_tag }} + is_stable: ${{ needs.compute-release-context.outputs.is_stable }} + is_active_major: ${{ needs.compute-release-context.outputs.is_active_major }} + token: ${{ steps.app-token.outputs.token }} From 7a0ba36e555038b4d16090bebdb757428773cfa5 Mon Sep 17 00:00:00 2001 From: tobias-tengler <45513122+tobias-tengler@users.noreply.github.com> Date: Tue, 26 May 2026 16:32:18 +0200 Subject: [PATCH 2/2] Cleanup --- .github/workflows/release.yml | 43 +++++++++++++++++++++++------------ 1 file changed, 28 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ab9148500ab..4aafa2dbe9f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -708,12 +708,6 @@ jobs: if: needs.compute-release-context.outputs.is_stable == 'true' steps: - - name: 📦 Checkout - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - with: - sparse-checkout: .github/actions - show-progress: false - - name: 🔐 Create GitHub App token id: app-token uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3 @@ -723,12 +717,31 @@ jobs: owner: ChilliCream repositories: nitro-azure-pipelines-tasks - - name: 🔄 Run extension release workflow - uses: ./.github/actions/dispatch-and-watch-workflow - with: - repo: ChilliCream/nitro-azure-pipelines-tasks - workflow: release.yaml - version: ${{ needs.compute-release-context.outputs.git_tag }} - is_stable: ${{ needs.compute-release-context.outputs.is_stable }} - is_active_major: ${{ needs.compute-release-context.outputs.is_active_major }} - token: ${{ steps.app-token.outputs.token }} + - name: 🚀 Dispatch extension release workflow + id: dispatch + env: + GH_TOKEN: ${{ steps.app-token.outputs.token }} + REPO: ChilliCream/nitro-azure-pipelines-tasks + VERSION: ${{ needs.compute-release-context.outputs.git_tag }} + IS_ACTIVE_MAJOR: ${{ needs.compute-release-context.outputs.is_active_major }} + shell: bash + run: | + set -euo pipefail + RUN_URL=$(gh workflow run release.yaml --repo "$REPO" --ref main \ + -f version="$VERSION" \ + -f is_active_major="$IS_ACTIVE_MAJOR") + if [ -z "$RUN_URL" ]; then + echo "::error::Dispatch did not return a run URL. Requires gh >= 2.87.0." + exit 1 + fi + RUN_ID="${RUN_URL##*/}" + echo "run-id=$RUN_ID" >> "$GITHUB_OUTPUT" + echo "Dispatched run: $RUN_URL" + + - name: 👀 Watch extension release run + env: + GH_TOKEN: ${{ steps.app-token.outputs.token }} + REPO: ChilliCream/nitro-azure-pipelines-tasks + RUN_ID: ${{ steps.dispatch.outputs.run-id }} + shell: bash + run: gh run watch "$RUN_ID" --repo "$REPO" --exit-status --compact