Skip to content

Commit

Permalink
ci: fix nx branch setup
Browse files Browse the repository at this point in the history
  • Loading branch information
SimeonC committed Sep 28, 2023
1 parent 5c3b461 commit 6c0ea2c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,14 @@ runs:
node-version: ${{ steps.nvm.outputs.nvmrc }}
cache: npm

- name: Setup branch for NX
- name: Setup branch for NX (main)
shell: bash
if: github.ref == 'refs/head/main'
run: git branch -u origin/main main

- name: Setup branch for NX (!main)
shell: bash
if: github.ref != 'refs/head/main'
run: git branch --track main origin/main

- name: Install without scripts 🔧
Expand Down

0 comments on commit 6c0ea2c

Please sign in to comment.