chore: release v0.36.67 (#406) #168
This file contains hidden or 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 PR branches on main push | |
| on: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| update-prs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Update BEHIND PRs with auto-merge | |
| run: | | |
| gh pr list --base main --state open --json number,autoMergeRequest,mergeStateStatus \ | |
| --jq '.[] | select(.autoMergeRequest != null) | select(.mergeStateStatus=="BEHIND") | .number' \ | |
| | while read -r pr; do | |
| echo "Updating PR #${pr}" | |
| gh pr update-branch "${pr}" || echo "Skip PR #${pr}" | |
| done | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |