Skip to content

Commit 53d8a49

Browse files
committed
Add some GitHub Actions outputs
1 parent b4c46d3 commit 53d8a49

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

release.sh

+12-2
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,16 @@ else
755755
file_type="alpha"
756756
fi
757757

758+
# Add some GitHub Actions outputs
759+
if [[ -n $GITHUB_ACTIONS ]]; then
760+
# shellcheck disable=SC2129
761+
echo "project_version=${project_version}" >> "$GITHUB_OUTPUT"
762+
echo "previous_version=${previous_version}" >> "$GITHUB_OUTPUT"
763+
echo "project_hash=${project_hash}" >> "$GITHUB_OUTPUT"
764+
echo "project_timestamp=${project_timestamp}" >> "$GITHUB_OUTPUT"
765+
echo "release_type=${file_type}" >> "$GITHUB_OUTPUT"
766+
fi
767+
758768
# Bare carriage-return character.
759769
carriage_return=$( printf "\r" )
760770

@@ -2485,8 +2495,8 @@ if [ -z "$skip_zipfile" ]; then
24852495
nolib_archive=
24862496
fi
24872497

2488-
if [ -n "$GITHUB_ACTIONS" ]; then
2489-
echo "ARCHIVE_PATH=${archive}" >> "$GITHUB_OUTPUT"
2498+
if [[ -n $GITHUB_ACTIONS ]]; then
2499+
echo "archive_path=${archive}" >> "$GITHUB_OUTPUT"
24902500
fi
24912501

24922502
start_group "Creating archive: $archive_name ($archive_label)" "archive"

0 commit comments

Comments
 (0)