fix: only use earthly builder if token exists (#53)
This fixes workflow runs from PRs that use forks of the repo and don't contain the secret for the earthly login
This commit is contained in:
parent
d90fbcbb5f
commit
fe671cdd1a
1 changed files with 3 additions and 0 deletions
3
.github/workflows/build-pr.yml
vendored
3
.github/workflows/build-pr.yml
vendored
|
|
@ -17,6 +17,9 @@ jobs:
|
|||
version: v0.8.3
|
||||
|
||||
- name: Earthly login
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue