Skip to content

Commit

Permalink
fix: migrate to non-deprecated set-output (#66)
Browse files Browse the repository at this point in the history
* fix: migrate to non-deprecated set-output

* fix: prevent globbing/word-splitting
  • Loading branch information
iBotPeaches authored Oct 20, 2022
1 parent 915bb44 commit e524961
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ if [ "$(unzip -l "$ZIP_FILENAME" | grep -q appspec.yml)" = "0" ]; then
fi

echo "::debug::Zip Archived validated."
echo "::set-output name=zip_filename::$ZIP_FILENAME"
echo "zip_filename=$ZIP_FILENAME" >> "$GITHUB_OUTPUT"

# 3) Upload the deployment to S3, drop old archive.
function getArchiveETag() {
Expand All @@ -111,7 +111,7 @@ echo "::debug::Zip uploaded to S3."
ZIP_ETAG=$(getArchiveETag)

echo "::debug::Obtained ETag of uploaded S3 Zip Archive."
echo "::set-output name=etag::$ZIP_ETAG"
echo "etag=$ZIP_ETAG" >> "$GITHUB_OUTPUT"

rm "$ZIP_FILENAME"

Expand Down

0 comments on commit e524961

Please sign in to comment.