diff --git a/.github/workflows/rust-release.yml b/.github/workflows/rust-release.yml index a765ba6a33..7125b61d71 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: Checkout repository + uses: actions/checkout@v5 + with: + fetch-depth: 0 # Fetch all history for all branches and tags + + - name: Update latest-alpha-cli branch + run: | + set -euo pipefail + git branch -f latest-alpha-cli "${GITHUB_REF_NAME}" + git push origin latest-alpha-cli --force