1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/.github/workflows/pr-update.yaml

32 lines
821 B
YAML
Raw Normal View History

name: PR update
permissions: {}
on:
push:
branches:
- 'main'
- 'release-*'
2022-09-01 10:54:23 +00:00
jobs:
autoupdate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- 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@cd305ecbd76bf63056c9400ce2c725293fc3e0c0 # v0.7.0
with:
token: ${{ secrets.PR_UPDATE_TOKEN }}
2022-09-01 10:54:23 +00:00
base: ${{ github.ref_name }}
required_approval_count: 1
require_passed_checks: false
sort: updated
direction: asc