From 19f774429fbb9ba88636d66ce6efb50dce97efb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 15 Jan 2021 15:36:24 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Limit=20issue=20validation=20to?= =?UTF-8?q?=20opened=20&=20edited?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also merge validations into one job instead of two. --- .github/workflows/issue_automation.yml | 7 ++----- .github/workflows/pr_automation.yml | 6 +----- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/issue_automation.yml b/.github/workflows/issue_automation.yml index 0dd06a4ed..0ba8b6f44 100644 --- a/.github/workflows/issue_automation.yml +++ b/.github/workflows/issue_automation.yml @@ -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 }} diff --git a/.github/workflows/pr_automation.yml b/.github/workflows/pr_automation.yml index 692db55bb..659733438 100644 --- a/.github/workflows/pr_automation.yml +++ b/.github/workflows/pr_automation.yml @@ -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 }}