diff --git a/.github/workflows/rust-release.yml b/.github/workflows/rust-release.yml index a765ba6a..f0661d27 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