Skip to content

Commit

Permalink
fix: modify regex to get version
Browse files Browse the repository at this point in the history
  • Loading branch information
narugit committed Aug 18, 2024
1 parent cca99e5 commit 0810406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- name: Audit version
run: |
expect_version=$(sed -n 's/.*kVersion = "\(.*\)";/\1/p' smctemp.h)
expect_version=$(sed -n 's/.*kVersion\[\] = "\(.*\)";/\1/p' smctemp.h)
input_version=${{ github.event.inputs.version }}
if [[ "$expect_version" != "$input_version" ]]; then
echo "ERROR: Version is mismatched. Expected version: $expect_version"
Expand Down

0 comments on commit 0810406

Please sign in to comment.