From 53d8a49d79267da20390e0aec7be70a2bd26e873 Mon Sep 17 00:00:00 2001 From: Kyle Buller Date: Fri, 8 Mar 2024 16:16:19 -0600 Subject: [PATCH] Add some GitHub Actions outputs --- release.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/release.sh b/release.sh index bef4651..9e2e078 100755 --- a/release.sh +++ b/release.sh @@ -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" ) @@ -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"