From 0df0ca8cf481eef5579c0937dbf3efb78039f11f Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Wed, 10 Sep 2025 23:09:30 -0700 Subject: [PATCH] chore: rust-release.yml should update the latest-alpha-cli branch --- .github/workflows/rust-release.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/rust-release.yml b/.github/workflows/rust-release.yml index a765ba6a33..f0661d273d 100644 --- a/.github/workflows/rust-release.yml +++ b/.github/workflows/rust-release.yml @@ -219,3 +219,22 @@ jobs: with: tag: ${{ github.ref_name }} config: .github/dotslash-config.json + + update-branch: + name: Update latest-alpha-cli branch + permissions: + contents: write + needs: release + runs-on: ubuntu-latest + + steps: + - name: Update latest-alpha-cli branch + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + set -euo pipefail + gh api \ + repos/${GITHUB_REPOSITORY}/git/refs/heads/latest-alpha-cli \ + -X PATCH \ + -f sha="${GITHUB_SHA}" \ + -f force=true