From 50d884f7afa4c011becc34219d67c0eac5a901af Mon Sep 17 00:00:00 2001 From: Jon Rohan Date: Fri, 30 Aug 2024 10:07:23 -0700 Subject: [PATCH] Update welcome.yml --- .github/workflows/welcome.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/welcome.yml b/.github/workflows/welcome.yml index 8b2fbc2e2c..b5a4094a0b 100644 --- a/.github/workflows/welcome.yml +++ b/.github/workflows/welcome.yml @@ -1,6 +1,14 @@ name: Welcome on: pull_request: + types: + # On by default if you specify no types. + - "opened" + - "reopened" + - "synchronize" + # For `skip-label` only. + - "labeled" + - "unlabeled" jobs: release-template: @@ -39,6 +47,22 @@ jobs: }) } + check-for-changeset: + name: Check for changeset + runs-on: ubuntu-latest + env: + SKIP_LABEL: "skip changeset" + steps: + - if: "contains(github.event.pull_request.labels.*.name, 'skip changeset')" + run: echo "passed"; exit 0; + - if: "!contains(github.event.pull_request.labels.*.name, 'skip changeset')" + uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + - if: "!contains(github.event.pull_request.labels.*.name, 'skip changeset')" + name: "Check for changeset" + run: script/check-for-changeset + bundle-stats: needs: release-template runs-on: ubuntu-latest