feat: Add update.sh to pick latest commit
This commit is contained in:
parent
7d95385b25
commit
6956226761
1 changed files with 12 additions and 0 deletions
12
update.sh
Executable file
12
update.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
||||||
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
GATUS_REPO="selfhoster1312/gatus"
|
||||||
|
GATUS_BRANCH="fork"
|
||||||
|
|
||||||
|
GATUS_REF="$(git ls-remote -b https://github.com/$GATUS_REPO refs/heads/$GATUS_BRANCH | cut -f1)"
|
||||||
|
echo "Updating to latest commit on $GATUS_REPO branch $GATUS_BRANCH: $GATUS_REF"
|
||||||
|
|
||||||
|
sed -i "s,GATUS_REPO: ".*",GATUS_REPO: \"$GATUS_REPO\"," .github/workflows/release.yml
|
||||||
|
sed -i "s,GATUS_REF: ".*",GATUS_REF: \"$GATUS_REF\"," .github/workflows/release.yml
|
||||||
Loading…
Reference in a new issue