chore: Fix build and build-pr not running properly
This commit is contained in:
parent
9b93713527
commit
bb7ab8e1a5
2 changed files with 6 additions and 5 deletions
4
.github/workflows/build-pr.yml
vendored
4
.github/workflows/build-pr.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue