Skip to content

Commit

Permalink
add token (#13)
Browse files Browse the repository at this point in the history
* add token

* use auto approve PR script

* add pull-requests write

* move auto pr approval to another place
  • Loading branch information
pbacon-blaber authored Jul 16, 2024
1 parent 62d1fa4 commit 25e99c4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/auto-approve.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Auto Approve
on: pull_request_target

jobs:
auto-approve:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: hmarr/auto-approve-action@v4
if: startsWith(github.event.pull_request.title, 'Auto PR for')
6 changes: 1 addition & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v2
- name: Update file and tag
Expand Down Expand Up @@ -39,10 +40,5 @@ jobs:
gh pr merge --auto --squash
env:
GITHUB_TOKEN: ${{ secrets.PBB_GH_TOKEN }}
- name: Auto Approve PR
run: |
gh pr review ${{ steps.create_pr.outputs.pr_number }} --approve
env:
GH_TOKEN: ${{ github.token }}


0 comments on commit 25e99c4

Please sign in to comment.