mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-28 18:38:40 +00:00
chore: simplify pr update workflow (#6024)
This commit is contained in:
parent
ef81344c32
commit
7a9bf1feed
1 changed files with 8 additions and 15 deletions
23
.github/workflows/pr-update.yaml
vendored
23
.github/workflows/pr-update.yaml
vendored
|
@ -7,27 +7,20 @@ on:
|
|||
- 'release-*'
|
||||
|
||||
jobs:
|
||||
checksecret:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
result: ${{ steps.check.outputs.result }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
||||
- name: Check secret
|
||||
id: check
|
||||
uses: ./.github/actions/is-defined
|
||||
with:
|
||||
value: ${{ secrets.PR_UPDATE_TOKEN }}
|
||||
|
||||
autoupdate:
|
||||
needs: [checksecret]
|
||||
if: needs.checksecret.outputs.result == 'true'
|
||||
permissions:
|
||||
pull-requests: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.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@437fab6e0ac7d2a668f2c479f64225edd7f303fd # v0.6.0
|
||||
with:
|
||||
token: ${{ secrets.PR_UPDATE_TOKEN }}
|
||||
|
|
Loading…
Add table
Reference in a new issue