Skip to content

Commit

Permalink
Add some GitHub Actions outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
nebularg committed Mar 8, 2024
1 parent b4c46d3 commit 53d8a49
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,16 @@ else
file_type="alpha"
fi

# Add some GitHub Actions outputs
if [[ -n $GITHUB_ACTIONS ]]; then
# shellcheck disable=SC2129
echo "project_version=${project_version}" >> "$GITHUB_OUTPUT"
echo "previous_version=${previous_version}" >> "$GITHUB_OUTPUT"
echo "project_hash=${project_hash}" >> "$GITHUB_OUTPUT"
echo "project_timestamp=${project_timestamp}" >> "$GITHUB_OUTPUT"
echo "release_type=${file_type}" >> "$GITHUB_OUTPUT"
fi

# Bare carriage-return character.
carriage_return=$( printf "\r" )

Expand Down Expand Up @@ -2485,8 +2495,8 @@ if [ -z "$skip_zipfile" ]; then
nolib_archive=
fi

if [ -n "$GITHUB_ACTIONS" ]; then
echo "ARCHIVE_PATH=${archive}" >> "$GITHUB_OUTPUT"
if [[ -n $GITHUB_ACTIONS ]]; then
echo "archive_path=${archive}" >> "$GITHUB_OUTPUT"
fi

start_group "Creating archive: $archive_name ($archive_label)" "archive"
Expand Down

0 comments on commit 53d8a49

Please sign in to comment.