-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In particular, I'd like to make sure the default version in action.yaml gets updated before pushing the release tag so that the default version matches the action version. Right now the default version is always one version behind, which is mildly inconvenient. Sorry for all the whitespace changes, it should be a one time thing for using yq to update action.yaml. Signed-off-by: Michi Mutsuzaki <[email protected]>
- Loading branch information
1 parent
ed24dee
commit f84dbae
Showing
3 changed files
with
40 additions
and
28 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 |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
"gitAuthor": "renovate[bot] <[email protected]>", | ||
"includePaths": [ | ||
".github/workflows/**", | ||
"action.yaml", | ||
"go.mod", | ||
"go.sum", | ||
"Dockerfile", | ||
|
@@ -93,16 +92,5 @@ | |
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+.+version: (?<currentValue>.*)" | ||
] | ||
}, | ||
{ | ||
"fileMatch": [ | ||
"^action\\.yaml$", | ||
], | ||
// This regex manages version strings in GitHub actions files, | ||
// similar to the examples shown here: | ||
// https://docs.renovatebot.com/modules/manager/regex/#advanced-capture | ||
"matchStrings": [ | ||
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+.+default: '(?<currentValue>.*)'" | ||
] | ||
}, | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# little-vm-helper Release Process | ||
|
||
## Set `RELEASE` environment variable | ||
|
||
Set `RELEASE` environment variable to the new version. For example: | ||
|
||
export RELEASE=v0.0.16 | ||
|
||
## Open a pull request | ||
|
||
Bump up the default version in action.yaml and open a pull request against `main` branch: | ||
|
||
alias yq='docker run --rm -v "${PWD}":/workdir --user "$(id -u):$(id -g)" mikefarah/yq:4.40.5' | ||
yq ".inputs.lvh-version.default = \"$RELEASE\"" -i action.yaml | ||
git checkout -b pr/prepare-$RELEASE | ||
git add action.yaml | ||
git commit -s -m "Prepare for $RELEASE release" | ||
git push origin HEAD | ||
|
||
Wait for the PR to be reviewed and merged. | ||
|
||
## Tag a release | ||
|
||
Checkout `main` branch: | ||
|
||
git checkout main | ||
git pull origin main | ||
|
||
Set the commit you want to tag. Usually this is the most recent commit on `main`, i.e. | ||
|
||
export COMMIT_SHA=$(git rev-parse origin/main) | ||
|
||
Then tag and push the release: | ||
|
||
git tag -a $RELEASE -m "$RELEASE release" $COMMIT_SHA && git push origin $RELEASE |
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