Skip to content

Commit

Permalink
ci: cannot set permissions on job step
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Dec 12, 2024
1 parent 6d04c06 commit ddc8407
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
release-plz:
name: Release-plz
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -24,17 +27,12 @@ jobs:
- name: Run release-plz
id: release-plz
uses: MarcoIeni/release-plz-action@v0.5
permissions:
pull-requests: write
contents: write
env:
GITHUB_TOKEN: ${{ secrets.OXC_BOT_PAT }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

- name: Bump package.json
if: ${{ steps.release-plz.outputs.prs_created }}
permissions:
pull-requests: write
env:
GH_TOKEN: ${{ secrets.OXC_BOT_PAT }}
RELEASES: ${{ steps.release-plz.outputs.releases }}
Expand Down

0 comments on commit ddc8407

Please sign in to comment.