Skip to content

Commit

Permalink
ci(github): fix release PR exclusion condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangabriele committed Sep 6, 2024
1 parent 8d7f658 commit f0c921a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ concurrency:
jobs:
lint:
name: Lint
if: ${{ !startsWith(github.ref, 'refs/heads/ci-release-v') }}
if: ${{ !startsWith(github.head_ref, 'ci-release-v') }}
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -33,7 +33,7 @@ jobs:

type:
name: Type
if: ${{ !startsWith(github.ref, 'refs/heads/ci-release-v') }}
if: ${{ !startsWith(github.head_ref, 'ci-release-v') }}
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -49,7 +49,7 @@ jobs:

test_unit:
name: Unit Test
if: ${{ !startsWith(github.ref, 'refs/heads/ci-release-v') }}
if: ${{ !startsWith(github.head_ref, 'ci-release-v') }}
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ jobs:
containers: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
steps:
- name: Checkout
if: ${{ !startsWith(github.ref, 'refs/heads/ci-release-v') }}
if: ${{ !startsWith(github.head_ref, 'ci-release-v') }}
uses: actions/checkout@v4
- name: Setup
if: ${{ !startsWith(github.ref, 'refs/heads/ci-release-v') }}
if: ${{ !startsWith(github.head_ref, 'ci-release-v') }}
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install
if: ${{ !startsWith(github.ref, 'refs/heads/ci-release-v') }}
if: ${{ !startsWith(github.head_ref, 'ci-release-v') }}
uses: ./.github/actions/install
- name: Test
if: ${{ !startsWith(github.ref, 'refs/heads/ci-release-v') }}
if: ${{ !startsWith(github.head_ref, 'ci-release-v') }}
uses: cypress-io/github-action@v6
with:
component: true
Expand All @@ -48,7 +48,7 @@ jobs:
# Release build sanity check with Cypress
test_e2e_release:
name: Release E2E Test
if: ${{ !startsWith(github.ref, 'refs/heads/ci-release-v') }}
if: ${{ !startsWith(github.head_ref, 'ci-release-v') }}
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/timezone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
test_unit_in_paris:
name: Unit Test
if: ${{ !startsWith(github.ref, 'refs/heads/ci-release-v') }}
if: ${{ !startsWith(github.head_ref, 'ci-release-v') }}
strategy:
matrix:
timeZone: ['Europe/Paris']
Expand All @@ -36,7 +36,7 @@ jobs:

test_e2e_in_paris:
name: E2E Test
if: ${{ !startsWith(github.ref, 'refs/heads/ci-release-v') }}
if: ${{ !startsWith(github.head_ref, 'ci-release-v') }}
strategy:
matrix:
timeZone: ['Europe/Paris']
Expand Down

0 comments on commit f0c921a

Please sign in to comment.