👷 Limit issue validation to opened & edited
Also merge validations into one job instead of two.
This commit is contained in:
1 parent
29acb4cacc
commit
19f774429f
2 files changed
+3
-10
No files matched your search
@@ -4,7 +4,7 @@ on:
|
||||
types: [opened, edited, closed, reopened]
|
||||
|
||||
jobs:
|
||||
label:
|
||||
issue-automation:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/github-script@v2
|
||||
@@ -63,10 +63,7 @@ jobs:
|
||||
})
|
||||
}
|
||||
|
||||
validate:
|
||||
runs-on: ubuntu-latest
|
||||
needs: label
|
||||
steps:
|
||||
- uses: OctoPrint/actions/issue-validation@main
|
||||
if: github.event_name == 'issues' && (github.event.action == 'opened' || github.event.action == 'edited')
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
@@ -4,17 +4,13 @@ on:
|
||||
types: ["opened", "synchronize", "reopened", "edited", "labeled", "unlabeled"]
|
||||
|
||||
jobs:
|
||||
label:
|
||||
pr-automation:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/labeler@v3
|
||||
with:
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
|
||||
validate:
|
||||
runs-on: ubuntu-latest
|
||||
needs: label
|
||||
steps:
|
||||
- uses: OctoPrint/actions/pr-validation@main
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in new issue
Block a user