Skip to content

Commit

Permalink
Fix copy/paste bug in release GH action (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
adbancroft authored Jan 25, 2025
1 parent ee070a8 commit 2f8e870
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/prepare_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
$new_version=@($major_ver, $minor_ver, $patch_ver) -Join "."
# Update header file
$header = $header -replace "#define LIBDIVIDE_VERSION ""\d+\.\d+\.\d+""", "#define LIBDIVIDE_VERSION_MAJOR ""$new_version"""
$header = $header -replace "#define LIBDIVIDE_VERSION ""\d+\.\d+\.\d+""", "#define LIBDIVIDE_VERSION ""$new_version"""
$header = $header -replace "#define LIBDIVIDE_VERSION_MAJOR \d+", "#define LIBDIVIDE_VERSION_MAJOR $major_ver"
$header = $header -replace "#define LIBDIVIDE_VERSION_MINOR \d+", "#define LIBDIVIDE_VERSION_MINOR $minor_ver"
$header = $header -replace "#define LIBDIVIDE_VERSION_PATCH \d+", "#define LIBDIVIDE_VERSION_PATCH $patch_ver"
Expand Down
2 changes: 1 addition & 1 deletion libdivide.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#define LIBDIVIDE_H

// *** Version numbers are auto generated - do not edit ***
#define LIBDIVIDE_VERSION_MAJOR "5.1.1"
#define LIBDIVIDE_VERSION "5.1.1"
#define LIBDIVIDE_VERSION_MAJOR 5
#define LIBDIVIDE_VERSION_MINOR 1
#define LIBDIVIDE_VERSION_PATCH 1
Expand Down

0 comments on commit 2f8e870

Please sign in to comment.