agones.dev/agones@v1.54.0/.github/workflows/pr_update.yml (about) 1 --- 2 # Copyright 2023 Google LLC 3 # 4 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # you may not use this file except in compliance with the License. 6 # You may obtain a copy of the License at 7 # 8 # http://www.apache.org/licenses/LICENSE-2.0 9 # 10 # Unless required by applicable law or agreed to in writing, software 11 # distributed under the License is distributed on an "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # See the License for the specific language governing permissions and 14 # limitations under the License. 15 16 # GitHub action that runs https://github.com/adRise/update-pr-branch on each push to 17 # `main`. `update-pr-branch` will pick the oldest PR (by creation date) that is approved 18 # with auto-merge enabled and update it to the latest `main`, forming a best-effort queue 19 # of approved PRs. 20 name: PR update 21 on: 22 push: 23 branches: [main] 24 jobs: 25 autoupdate: 26 runs-on: ubuntu-latest 27 permissions: 28 contents: read 29 pull-requests: write 30 steps: 31 - name: Automatically update PR 32 uses: adRise/update-pr-branch@v0.6.0 33 with: 34 token: ${{ secrets.AGONES_BOT }} 35 base: main 36 required_approval_count: 1 37 require_passed_checks: true 38 sort: created 39 direction: asc