Merge pull request #1105 from web3privacy/stealth-project-update-1737… #119
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto Update Pull Request Branches | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
update-prs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Auto-update PR branches | |
run: | | |
PRS=$(gh pr list --base main --state open --json number -q '.[].number') | |
for pr in $PRS; do | |
gh pr merge main --merge --auto --pr $pr || echo "PR #$pr couldn't be updated" | |
done | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |