2024-01-27 23:32:42 +01:00
|
|
|
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
|
|
|
|
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
|
2024-05-07 10:36:00 +00:00
|
|
|
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
|
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'
|
2024-02-23 08:54:46 +00:00
|
|
|
uses: adRise/update-pr-branch@1dc4248ce8a2480d1e432fa641f243ef12f6708e # v0.7.2
|
2022-05-02 19:04:43 +01:00
|
|
|
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
|