mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 18:31:52 +00:00
* consolidate and streamline build * fix workflow syntax * fix workflow syntax * fix workflow syntax * fix workflow syntax * fix build scripts * only build platform-specific system images * fix build script * more build fixes * fix * fix compat build for x86 * wat * checkout * Prevent rebuild of compiled artifacts * Update startos-iso.yaml * Update startos-iso.yaml * fix raspi build * handle missing platform better * reduce arm vcpus * remove arch and platform from fe config, add to patch db --------- Co-authored-by: Matt Hill <mattnine@protonmail.com>
13 lines
329 B
Bash
Executable File
13 lines
329 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ "$GIT_BRANCH_AS_HASH" != 1 ]; then
|
|
GIT_HASH="$(git describe --always --abbrev=40 --dirty=-modified)"
|
|
else
|
|
GIT_HASH="@$(git rev-parse --abbrev-ref HEAD)"
|
|
fi
|
|
|
|
if ! [ -f ./GIT_HASH.txt ] || [ "$(cat ./GIT_HASH.txt)" != "$GIT_HASH" ]; then
|
|
echo -n "$GIT_HASH" > ./GIT_HASH.txt
|
|
fi
|
|
|
|
echo -n ./GIT_HASH.txt |