Skip to content

Commit 7c78089

Browse files
committed
Fix auto release workflow
1 parent 529329b commit 7c78089

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.github/workflows/c-cpp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
id: get_version
4040
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
4141
run: |
42-
VERSION=$(grep -oP '(?<=#define VERSION\s+")[^"]+' main.c || true)
42+
VERSION=$(grep '#define VERSION' main.c | sed -E 's/.*"([^"]+)".*/\1/')
4343
if [ -z "$VERSION" ]; then
4444
echo "Failed to extract VERSION from main.c"; exit 1
4545
fi

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,6 @@ Or just `./run.sh &` which is recommended.
371371

372372
## TODO
373373
- Attaching to already running processes
374-
- Create releases
375374
- Enable commands over UDP
376375
- Enable remote syslog server reporting
377376
- Add periodic server health reporting

monitor.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ sleep 5
2121
# Cleanup handler
2222
cleanup() {
2323
echo "Cleaning up... killing $pid"
24-
kill $pid 2>/dev/null
24+
kill -SIGUSR1 $pid 2>/dev/null
2525
}
2626
trap cleanup EXIT
2727

0 commit comments

Comments
 (0)