From e24e66befad7add717555ac3a55696bb862107d5 Mon Sep 17 00:00:00 2001 From: Zaran Lalvani Date: Mon, 29 Apr 2024 18:24:41 -0400 Subject: [PATCH] chore: update github action to always pass required checks --- .github/workflows/skip-verify-version.yml | 27 +++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/skip-verify-version.yml diff --git a/.github/workflows/skip-verify-version.yml b/.github/workflows/skip-verify-version.yml new file mode 100644 index 0000000..8520900 --- /dev/null +++ b/.github/workflows/skip-verify-version.yml @@ -0,0 +1,27 @@ +# We need this action since github action path filtering does not mark excluded actions as skipped. +# Since both of these jobs are required, we need something that marks them as successful. + +name: Skip verify version checks +on: + pull_request: + branches: [main] + types: [labeled, unlabeled, opened, synchronize] + paths-ignore: + - "apps/**" + - "packages/**" + +jobs: + verify-version: + runs-on: ubuntu-latest + steps: + - name: Pass + run: | + echo 'Skipping because no changes to releasables were made.' + + block-prerelease: + if: contains(github.event.pull_request.labels.*.name, 'prerelease') + runs-on: ubuntu-latest + steps: + - name: Pass + run: | + echo 'Skipping because no changes to releasables were made.'