-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
magefile:bugfix - fixing error with update version functions
For some reason both functions responsable for updating the project version stopped working. This pull request removes the update specific for json since the tool don't seens to work while being executed by mage. Also fixed an error in UpdateHorusecVersionInProject wich was reporting file not found. Now just this function will update all necessary files. Signed-off-by: Nathan Martins <[email protected]>
- Loading branch information
1 parent
c06306c
commit 18a8825
Showing
2 changed files
with
23 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,13 +87,9 @@ jobs: | |
|
||
- name: Checkout release candidate branch | ||
run: ./mage -v checkoutReleaseBranch ${{ steps.updated-version.outputs.nextReleaseBranchName }} | ||
- name: Update versions on package.json | ||
run: ./mage -v updatePackageJson ${{ steps.updated-version.outputs.nextReleaseVersionStripped }} | ||
|
||
- name: Update versions on rest of the project | ||
run: | | ||
find . -type f -not -path "./.git/*" -not -path "./manager/cypress/*" -not -name "*.sum" -not -name "*.mod"| | ||
xargs sed -i "s/${{ steps.updated-version.outputs.actualReleaseVersion }}/${{ steps.updated-version.outputs.nextReleaseVersion }}/g" | ||
- name: Update all Horusec versions in project | ||
run: ./mage UpdateHorusecVersionInProject ${{ steps.updated-version.outputs.actualReleaseVersion }} ${{ steps.updated-version.outputs.nextReleaseVersion }} | ||
|
||
- name: Commit changes | ||
uses: EndBug/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters