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

34 lines
900 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 10:54:23 +00:00
jobs:
autoupdate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- 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 }}
2022-09-01 10:54:23 +00:00
base: ${{ github.ref_name }}
required_approval_count: 1
require_passed_checks: false
sort: updated
direction: asc