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

chore: fix check milestone job (#10332)

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
Charles-Edouard Brétéché 2024-05-29 21:11:55 +02:00 committed by GitHub
parent 61969c5225
commit b2c5984845
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,7 +8,13 @@ on:
pull_request: pull_request:
branches: branches:
- 'main' - 'main'
types:
- opened
- demilestoned
- milestoned
- edited
- synchronize
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true cancel-in-progress: true
@ -16,7 +22,6 @@ concurrency:
jobs: jobs:
check-milestone: check-milestone:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }} # dependabot prs do not have to be in milestone
steps: steps:
- name: Check milestone - name: Check milestone
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
@ -32,6 +37,3 @@ jobs:
} else { } else {
core.setFailed(`A milestone need to be set on this pull request.`); core.setFailed(`A milestone need to be set on this pull request.`);
} }
- name: Debug failure
if: failure()
run: 'echo "GitHub Actor: ${{ github.actor }}"'