From bb9f48bce7bd771dd3d694165029a85d81d37c16 Mon Sep 17 00:00:00 2001 From: Lukas Oppermann Date: Thu, 27 Apr 2023 10:16:34 +0200 Subject: [PATCH] Check for changeset from primer/react (#616) * copy check for changeset from primer/react --- .github/workflows/check_for_changeset.yml | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/check_for_changeset.yml diff --git a/.github/workflows/check_for_changeset.yml b/.github/workflows/check_for_changeset.yml new file mode 100644 index 000000000..8eb4c6b50 --- /dev/null +++ b/.github/workflows/check_for_changeset.yml @@ -0,0 +1,25 @@ +name: Check for changeset + +on: + pull_request: + types: + # On by default if you specify no types. + - 'opened' + - 'reopened' + - 'synchronize' + # For `skip-label` only. + - 'labeled' + - 'unlabeled' + +jobs: + check-for-changeset: + name: Check for changeset + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: 'Check for changeset' + uses: brettcannon/check-for-changed-files@v1 + with: + file-pattern: '.changeset/*.md' + skip-label: 'skip changeset' + failure-message: 'No changeset found. If these changes should not result in a new version, apply the ${skip-label} label to this pull request. If these changes should result in a version bump, please add a changeset https://git.io/J6QvQ' \ No newline at end of file