Skip to content

Commit

Permalink
Merge pull request #37 from narugit/fix/update_regex_to_get_version
Browse files Browse the repository at this point in the history
fix: modify regex to get version
  • Loading branch information
narugit authored Aug 18, 2024
2 parents cca99e5 + 0810406 commit a810310
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 a810310

Please sign in to comment.