Skip to content

Commit e24ddf4

Browse files
authored
fix(ci): allow running for forks (#1310)
2 parents 6932d5f + c637850 commit e24ddf4

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/actions/deploy-setup/action.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ runs:
5050
id: set-toplevel
5151
shell: bash
5252
run: |
53-
if [[ "$IS_DEV" == "true" ]] ; then
53+
if [[ -z $GITHUB_TOKEN ]] ; then
54+
>&2 echo '$GITHUB_TOKEN is unset, skipping deployment'
55+
version_text=skip
56+
elif [[ "$IS_DEV" == "true" ]] ; then
5457
version_text=latest
5558
elif cranko show if-released --exit-code tectonic ; then
5659
version_text="$(cranko show version tectonic)"
@@ -71,4 +74,4 @@ runs:
7174
run: |
7275
cranko github install-credential-helper
7376
git config --global user.email "notifications@github.com"
74-
git config --global user.name "Tectonic CI"
77+
git config --global user.name "Tectonic CI"

0 commit comments

Comments
 (0)