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-06-13 22:40:59 +00:00
|
|
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
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-05-29 09:31:50 +00:00
|
|
|
uses: adRise/update-pr-branch@5d273948c50bda6275d3a71e26f71c54e18392c1 # v0.8.1
|
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
|