Skip to content

Commit

Permalink
ci: use correct head ref for pull requests triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
emmenko committed Jun 30, 2022
1 parent e08f24f commit e3e42b4
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- run: echo "${{ github.ref }}"
- run: echo "${{ github.ref_name }}"
- run: echo "${{ github.head_ref }}"
- run: echo "${{ github.base_ref }}"

- name: Installing dependencies and building packages
uses: ./.github/actions/ci

Expand Down Expand Up @@ -136,7 +131,7 @@ jobs:
test_starter_template_installation:
runs-on: ubuntu-latest

if: github.ref != 'refs/heads/main' && github.ref != 'refs/heads/changeset-release/main'
if: github.ref != 'refs/heads/main' && github.head_ref != 'changeset-release/main'

timeout-minutes: 15

Expand Down Expand Up @@ -222,7 +217,7 @@ jobs:
test_starter_template_typescript_installation:
runs-on: ubuntu-latest

if: github.ref != 'refs/heads/main' && github.ref != 'refs/heads/changeset-release/main'
if: github.ref != 'refs/heads/main' && github.head_ref != 'changeset-release/main'

timeout-minutes: 15

Expand Down

0 comments on commit e3e42b4

Please sign in to comment.