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:
|
|
|
|
- 'main'
|
2022-05-03 08:03:43 +00:00
|
|
|
- '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
|
2023-10-25 04:29:31 +00:00
|
|
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
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'
|
2023-09-22 14:10:01 +00:00
|
|
|
uses: adRise/update-pr-branch@cd305ecbd76bf63056c9400ce2c725293fc3e0c0 # v0.7.0
|
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
|