Skip to content

Commit abaee4b

Browse files
Copilotsks
andauthored
fix: correct awk quoting in aiden-runner workflow version extraction (#17)
Agent-Logs-Url: https://github.com/stackgenhq/homebrew-stackgen/sessions/e9338a7c-8342-4938-93f1-94c6ed2b32f8 Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: sks <570239+sks@users.noreply.github.com>
1 parent 141e3cf commit abaee4b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/aiden-runner.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Get aiden-runner version
4242
id: version
4343
run: |
44-
VERSION="$(awk '$1 == \"version\" { print $2; exit }' aiden-runner.rb | tr -d '\"')"
44+
VERSION="$(awk '$1 == "version" { print $2; exit }' aiden-runner.rb | tr -d '"')"
4545
test -n "$VERSION" || { echo "Error: Failed to extract version from aiden-runner.rb"; exit 1; }
4646
echo "$VERSION" | grep -Eq '^[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?(\+[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$' || { echo "Error: Extracted version is not valid semver: $VERSION"; exit 1; }
4747
echo "VERSION=$VERSION" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)