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:
parent
61969c5225
commit
b2c5984845
1 changed files with 7 additions and 5 deletions
12
.github/workflows/check-milestone.yaml
vendored
12
.github/workflows/check-milestone.yaml
vendored
|
@ -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 }}"'
|
|
||||||
|
|
Loading…
Reference in a new issue