2024-01-27 22:32:42 +00:00
|
|
|
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
|
|
|
|
2022-05-02 18:04:43 +00:00
|
|
|
name: PR update
|
|
|
|
|
2023-06-30 11:44:57 +00:00
|
|
|
permissions: {}
|
|
|
|
|
2022-05-02 18:04:43 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2024-09-10 14:52:09 +00:00
|
|
|
- main
|
|
|
|
- release-*
|
2022-09-01 10:54:23 +00:00
|
|
|
|
2022-05-02 18:04:43 +00:00
|
|
|
jobs:
|
2023-01-18 15:32:40 +00:00
|
|
|
autoupdate:
|
2023-01-06 17:28:15 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-01-06 18:10:49 +00:00
|
|
|
- name: Checkout
|
2024-09-26 07:36:19 +00:00
|
|
|
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
|
2023-06-28 13:26:22 +00:00
|
|
|
- name: Check secret
|
|
|
|
id: checksecret
|
|
|
|
uses: ./.github/actions/is-defined
|
|
|
|
with:
|
|
|
|
value: ${{ secrets.PR_UPDATE_TOKEN }}
|
2022-05-02 18:04:43 +00:00
|
|
|
- name: Automatically update PR
|
2023-06-28 13:26:22 +00:00
|
|
|
if: steps.checksecret.outputs.result == 'true'
|
2024-09-02 19:51:32 +00:00
|
|
|
uses: adRise/update-pr-branch@3576c22e28fb6f665417bfe3a83f9da7ca5363e2 # v0.9.1
|
2022-05-02 18:04:43 +00:00
|
|
|
with:
|
2023-06-28 13:26:22 +00:00
|
|
|
token: ${{ secrets.PR_UPDATE_TOKEN }}
|
2022-09-01 10:54:23 +00:00
|
|
|
base: ${{ github.ref_name }}
|
2022-05-02 18:04:43 +00:00
|
|
|
required_approval_count: 1
|
2022-09-01 17:14:57 +00:00
|
|
|
require_passed_checks: false
|
2023-01-05 09:37:41 +00:00
|
|
|
sort: updated
|
|
|
|
direction: asc
|