From cebd16be97fb0a21117f7d65de3dd61a87a07c54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Borgna?= <121866228+aborgna-q@users.noreply.github.com> Date: Fri, 16 Aug 2024 11:31:36 +0100 Subject: [PATCH] ci: Ensure release-plz always pushes as @hugrbot (#76) This should solve the issue where CI checks wouldn't run in release PRs unless a human triggered an update. See https://github.com/MarcoIeni/release-plz/blob/main/website/docs/github/token.md#use-a-personal-access-token --- .github/workflows/release-plz.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-plz.yml b/.github/workflows/release-plz.yml index 9b1d2b5..4edd760 100644 --- a/.github/workflows/release-plz.yml +++ b/.github/workflows/release-plz.yml @@ -1,10 +1,6 @@ # Automatic changelog, version bumping, and semver-checks with release-plz for rust projects name: Release-plz 🦀 -permissions: - pull-requests: write - contents: write - on: push: branches: @@ -19,10 +15,11 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + token: ${{ secrets.HUGRBOT_PAT }} - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable - name: Run release-plz uses: MarcoIeni/release-plz-action@v0.5 env: - GITHUB_TOKEN: ${{ secrets.HUGRBOT_PAT }} + GITHUB_TOKEN: ${{ secrets.HUGRBOT_PAT }} CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}