1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-10 18:06:55 +00:00
kyverno/.github/workflows/pr-update.yaml

34 lines
904 B
YAML
Raw Normal View History

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: PR update
permissions: {}
on:
push:
branches:
- 'main'
- 'release-*'
2022-09-01 12:54:23 +02:00
jobs:
autoupdate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- 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@1dc4248ce8a2480d1e432fa641f243ef12f6708e # v0.7.2
with:
token: ${{ secrets.PR_UPDATE_TOKEN }}
2022-09-01 12:54:23 +02:00
base: ${{ github.ref_name }}
required_approval_count: 1
require_passed_checks: false
sort: updated
direction: asc