Skip to content

Commit

Permalink
Merge branch 'master' into mzibrick-ccxdev14404-insh_droid
Browse files Browse the repository at this point in the history
  • Loading branch information
matysek authored Oct 8, 2024
2 parents 95398e2 + 64800b6 commit 1db62bc
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/bots-automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ name: Bots auto-merge
on: pull_request

# This section adds write permissions to the secrets.GITHUB_TOKEN. Default is just read
permissions:
contents: write
pull-requests: write
#permissions:
#contents: write
#pull-requests: write

jobs:
bot-automerge:
runs-on: ubuntu-latest
permissions: write-all
# Check the pull request author.
if: |
github.event.pull_request.user.login == 'dependabot[bot]' ||
Expand All @@ -19,16 +20,11 @@ jobs:
- run: gh auth status
env:
GH_TOKEN: ${{ github.token }}
- run: gh auth login
- run: echo "$PR_URL"
env:
GH_TOKEN: ${{ github.token }}
- run: gh auth status
env:
GH_TOKEN: ${{ github.token }}
PR_URL: ${{github.event.pull_request.html_url}}
- name: Github Actions bot approves the PR
run: |
gh auth status
gh pr review --approve "$PR_URL"
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{ github.token }}
Expand Down

0 comments on commit 1db62bc

Please sign in to comment.