forked from kyverno/kyverno
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 900 Bytes
/
pr-update.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: PR update
permissions: {}
on:
push:
branches:
- main
- release-*
jobs:
autoupdate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Check secret
id: checksecret
uses: ./.github/actions/is-defined
with:
value: ${{ secrets.PR_UPDATE_TOKEN }}
- name: Automatically update PR
if: steps.checksecret.outputs.result == 'true'
uses: adRise/update-pr-branch@3576c22e28fb6f665417bfe3a83f9da7ca5363e2 # v0.9.1
with:
token: ${{ secrets.PR_UPDATE_TOKEN }}
base: ${{ github.ref_name }}
required_approval_count: 1
require_passed_checks: false
sort: updated
direction: asc