2022-05-02 19:04:43 +01:00
|
|
|
name: PR update
|
|
|
|
|
2023-06-30 13:44:57 +02:00
|
|
|
permissions: {}
|
|
|
|
|
2022-05-02 19:04:43 +01:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
2022-05-03 09:03:43 +01:00
|
|
|
- 'release-*'
|
2022-09-01 12:54:23 +02:00
|
|
|
|
2022-05-02 19:04:43 +01:00
|
|
|
jobs:
|
2023-01-18 16:32:40 +01:00
|
|
|
autoupdate:
|
2023-01-06 18:28:15 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-01-06 19:10:49 +01:00
|
|
|
- name: Checkout
|
2023-09-05 09:27:02 +00:00
|
|
|
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
|
2023-06-28 15:26:22 +02:00
|
|
|
- name: Check secret
|
|
|
|
id: checksecret
|
|
|
|
uses: ./.github/actions/is-defined
|
|
|
|
with:
|
|
|
|
value: ${{ secrets.PR_UPDATE_TOKEN }}
|
2022-05-02 19:04:43 +01:00
|
|
|
- name: Automatically update PR
|
2023-06-28 15:26:22 +02:00
|
|
|
if: steps.checksecret.outputs.result == 'true'
|
2022-05-02 19:04:43 +01:00
|
|
|
uses: adRise/update-pr-branch@437fab6e0ac7d2a668f2c479f64225edd7f303fd # v0.6.0
|
|
|
|
with:
|
2023-06-28 15:26:22 +02:00
|
|
|
token: ${{ secrets.PR_UPDATE_TOKEN }}
|
2022-09-01 12:54:23 +02:00
|
|
|
base: ${{ github.ref_name }}
|
2022-05-02 19:04:43 +01:00
|
|
|
required_approval_count: 1
|
2022-09-01 19:14:57 +02:00
|
|
|
require_passed_checks: false
|
2023-01-05 10:37:41 +01:00
|
|
|
sort: updated
|
|
|
|
direction: asc
|