Skip to content

Commit

Permalink
Merge pull request #60 from kramred/patch_release_info
Browse files Browse the repository at this point in the history
Additional patch release info (hashes: md5, sha1)
  • Loading branch information
Eloston authored Oct 12, 2020
2 parents 21ab410 + 8b96bb1 commit b69d218
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/force_build.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1595237981
1601884962
9 changes: 6 additions & 3 deletions .github/scripts/github_prepare_artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,18 @@ if [[ -f "$_root_dir/build_finished.log" ]] ; then
--format UDBZ --verbosity 2

cd "$_root_dir"
sha256sum ./"$_file_name" | tee ./sums.txt
_sha256sum=$(awk '{print $1;exit 0}' ./sums.txt)
echo -e "md5: \nsha1: \nsha256: " | tee ./hash_types.txt
{ md5sum "$_file_name" ; sha1sum "$_file_name" ; sha256sum "$_file_name" ; } | tee ./sums.txt

_hash_md=$(paste ./hash_types.txt ./sums.txt | awk '{print $1 " " $2}')

echo "::set-output name=file_name::$_file_name"
echo "::set-output name=release_tag_version::$_release_tag_version"

_gh_run_href="https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"

printf '`sha256sum` for diskimage `%s`: \n\n```\n%s\n```\n\n' "$_file_name" "$_sha256sum" | tee -a ./github_release_text.md
printf '[Hashes](https://en.wikipedia.org/wiki/Cryptographic_hash_function) for the disk image `%s`: \n' "$_file_name" | tee ./github_release_text.md
printf '\n```\n%s\n```\n' "$_hash_md" | tee -a ./github_release_text.md
printf 'See [this GitHub Actions Run](%s) for the [Workflow file](%s/workflow) used as well as the build logs and artifacts\n' "$_gh_run_href" "$_gh_run_href" | tee -a ./github_release_text.md
else

Expand Down
2 changes: 1 addition & 1 deletion revision.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1
2

0 comments on commit b69d218

Please sign in to comment.