Stamp source tarballs with the commit hash
This commit is contained in:
parent
d6e1b23006
commit
b5333608e9
5
.github/workflows/source-tarball.yml
vendored
5
.github/workflows/source-tarball.yml
vendored
@ -21,6 +21,11 @@ jobs:
|
|||||||
dir_name="solvespace-${version}"
|
dir_name="solvespace-${version}"
|
||||||
archive_name="${dir_name}.tar.xz"
|
archive_name="${dir_name}.tar.xz"
|
||||||
archive_path="${HOME}/${archive_name}"
|
archive_path="${HOME}/${archive_name}"
|
||||||
|
commit_sha="$GITHUB_SHA"
|
||||||
|
|
||||||
|
sed -e 's/^\(include(GetGitCommitHash)\)/#\1/' \
|
||||||
|
-e 's/^# \(set(GIT_COMMIT_HASH\).*/\1 '"$commit_sha"')/' \
|
||||||
|
-i CMakeLists.txt
|
||||||
|
|
||||||
echo "::set-output name=archive_name::${archive_name}"
|
echo "::set-output name=archive_name::${archive_name}"
|
||||||
echo "::set-output name=archive_path::${archive_path}"
|
echo "::set-output name=archive_path::${archive_path}"
|
||||||
|
Loading…
Reference in New Issue
Block a user