Skip to content

Commit 0361e9f

Browse files
committed
release: Put YS_GH_TOKEN in env for releases
1 parent a469b5c commit 0361e9f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

util/release-yamlscript

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ verbose =: true
4040
dryrun =: boolean(ENV.YS_RELEASE_DRYRUN)
4141
last-step =: (ENV.YS_RELEASE_LAST_STEP || steps):N
4242

43-
4443
#------------------------------------------------------------------------------
4544
# Run each step in succession, starting at the specified step number if given
4645
# and ending at the specified last step number if given.
@@ -302,7 +301,10 @@ defn run(cmd):
302301
say: "+ $cmd"
303302

304303
when-not dryrun:
305-
shell: cmd
304+
token =:
305+
sh-out:
306+
"ys -l $(ENV.HOME)/.yamlscript-secrets.yaml -e '.github.token:say'"
307+
shell {:extra-env {"YS_GH_TOKEN" token}}: cmd
306308

307309
defn check-args(old new start):
308310
when-not (string? old) && (re-matches /0\.\d+\.\d+/ old):

0 commit comments

Comments
 (0)