chore: Fix build and build-pr not running properly

This commit is contained in:
Gerald Pinder 2024-02-13 22:11:44 -05:00
parent 9b93713527
commit bb7ab8e1a5
2 changed files with 6 additions and 5 deletions

View file

@ -17,7 +17,9 @@ jobs:
version: v0.8.3
- name: Earthly login
if: github.repository == 'blue-build/cli'
env:
EARTHLY_SAT_TOKEN: ${{ secrets.EARTHLY_SAT_TOKEN }}
if: env.EARTHLY_SAT_TOKEN != null
run: |
earthly account login --token ${{ secrets.EARTHLY_SAT_TOKEN }} >> /dev/null
earthly org s blue-build

View file

@ -22,7 +22,9 @@ jobs:
version: v0.8.3
- name: Earthly login
if: github.repository == 'blue-build/cli'
env:
EARTHLY_SAT_TOKEN: ${{ secrets.EARTHLY_SAT_TOKEN }}
if: env.EARTHLY_SAT_TOKEN != null
run: |
earthly account login --token ${{ secrets.EARTHLY_SAT_TOKEN }} >> /dev/null
earthly org s blue-build
@ -43,6 +45,3 @@ jobs:
- name: Run build
if: github.repository == 'blue-build/cli'
run: earthly --push --ci -P +all
- name: Run build
if: github.repository != 'blue-build/cli'
run: earthly --ci -P +all