Skip to content

Commit 717b0d7

Browse files
committed
Fix workflow
1 parent 7c78089 commit 717b0d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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 '#define VERSION' main.c | sed -E 's/.*"([^"]+)".*/\1/')
42+
VERSION=$(grep '#define VERSION' src/main.c | sed -E 's/.*"([^"]+)".*/\1/')
4343
if [ -z "$VERSION" ]; then
4444
echo "Failed to extract VERSION from main.c"; exit 1
4545
fi

0 commit comments

Comments
 (0)