[+] Added getCommitID.sh
This commit is contained in:
parent
d0cfcbd92a
commit
f462a2f3b5
11
getCommitID.sh
Normal file
11
getCommitID.sh
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
COMMIT_ID=$(git rev-parse --short HEAD)
|
||||||
|
COMMIT_URL="https://git.sunyz.net/realSunyz/pub.seven.blog/commit/$COMMIT_ID"
|
||||||
|
|
||||||
|
cat <<EOF > data/Build.json
|
||||||
|
{
|
||||||
|
"ID": "$COMMIT_ID",
|
||||||
|
"URL": "$COMMIT_URL",
|
||||||
|
"Channel": "$CF_PAGES_BRANCH"
|
||||||
|
}
|
||||||
|
EOF
|
Loading…
Reference in New Issue
Block a user