act runner

This commit is contained in:
2024-07-10 14:57:05 +02:00
parent 8df38735cd
commit 3f21265586
5 changed files with 183 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#!/bin/bash
error () {
printf '%s\n' "=== Failed to update ==="
exit 1
}
echo "=== Updating Act Runner to v$1 ==="
systemctl stop act_runner.service || error
wget -nv -O /usr/local/bin/act_runner https://gitea.com/gitea/act_runner/releases/download/v$1/act_runner-$1-linux-amd64 || error
systemctl start act_runner.service || error
systemctl is-active act_runner.service || error
systemctl status act_runner.service || error
echo "=== Update finished ==="