From 999213c8761ee21285985a0bb355de077d2943e2 Mon Sep 17 00:00:00 2001 From: SutuSebastian Date: Wed, 20 Nov 2024 09:11:17 +0200 Subject: [PATCH 1/2] bypass status check for `changeset-release/main` branch #2 --- .github/actions/setup/action.yml | 7 +++++++ .github/workflows/ci.yml | 5 ----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 0464b8e..64aba88 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -12,3 +12,10 @@ runs: - name: Install packages shell: bash run: bun install + + - name: Check Branch + run: | + if [[ "${{ github.event.pull_request.head.ref }}" == "changeset-release/main" ]]; then + echo "Bypassing checks for changeset-release/main" + exit 0 + fi diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c54915..3084b2a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,6 @@ on: jobs: format: - if: github.event.pull_request.head.ref != 'changeset-release/main' name: ๐Ÿ’… Format runs-on: ubuntu-latest steps: @@ -21,7 +20,6 @@ jobs: run: bun run format:check lint: - if: github.event.pull_request.head.ref != 'changeset-release/main' name: ๐Ÿ•ต Lint runs-on: ubuntu-latest steps: @@ -35,7 +33,6 @@ jobs: run: bun run lint typecheck: - if: github.event.pull_request.head.ref != 'changeset-release/main' name: โœ… Typecheck runs-on: ubuntu-latest steps: @@ -49,7 +46,6 @@ jobs: run: bun run typecheck test: - if: github.event.pull_request.head.ref != 'changeset-release/main' name: ๐Ÿงช Test runs-on: ubuntu-latest steps: @@ -63,7 +59,6 @@ jobs: run: bun run test build: - if: github.event.pull_request.head.ref != 'changeset-release/main' name: ๐Ÿงฐ Build runs-on: ubuntu-latest steps: From c4da5ed888c23a3f3a7ea35e62a051edecfa2669 Mon Sep 17 00:00:00 2001 From: SutuSebastian Date: Wed, 20 Nov 2024 09:13:35 +0200 Subject: [PATCH 2/2] missing shell: bash --- .github/actions/setup/action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 64aba88..97b62c4 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -14,6 +14,7 @@ runs: run: bun install - name: Check Branch + shell: bash run: | if [[ "${{ github.event.pull_request.head.ref }}" == "changeset-release/main" ]]; then echo "Bypassing checks for changeset-release/main"