Skip to content

Commit

Permalink
ci: replace github set-ouput with new syntax in ./tools/bin/
Browse files Browse the repository at this point in the history
  • Loading branch information
cuyk committed Nov 2, 2022
1 parent 6a1d8df commit f76deca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tools/bin/bump_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ export VERSION=$NEW_VERSION # for safety, since lib.sh exports a VERSION that is

set +o xtrace
echo "Bumped version from ${PREV_VERSION} to ${NEW_VERSION}"
echo ::set-output name=PREV_VERSION::${PREV_VERSION}
echo ::set-output name=NEW_VERSION::${NEW_VERSION}
echo ::set-output name=GIT_REVISION::${GIT_REVISION}
echo "PREV_VERSION=${PREV_VERSION}" >> $GITHUB_OUTPUT
echo "NEW_VERSION=${NEW_VERSION}" >> $GITHUB_OUTPUT
echo "GIT_REVISION=${GIT_REVISION}" >> $GITHUB_OUTPUT
4 changes: 2 additions & 2 deletions tools/bin/find_non_rate_limited_PAT
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ for personal_access_token in $@
# github actions will NOT pass a string that looks like a secret
base64_valid_pat=$(echo "$personal_access_token" | base64)
echo -e "$blue_text""Found a good PAT!!""$default_text"
# ::set-output name is a github action magic string for output
echo "::set-output name=pat::$base64_valid_pat"
# $GITHUB_OUTPUT is a github action magic env variable for output
echo "pat=$base64_valid_pat" >> $GITHUB_OUTPUT
echo "PAT=$personal_access_token" >> $GITHUB_ENV
exit 0
else
Expand Down

0 comments on commit f76deca

Please sign in to comment.