-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve workflow dispatch to prepare release
Signed-off-by: Pierre-Emmanuel Jacquier <[email protected]>
- Loading branch information
1 parent
3b7bc9b
commit 5f81a89
Showing
13 changed files
with
3 additions
and
1,175 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 |
---|---|---|
|
@@ -10,43 +10,35 @@ on: | |
jobs: | ||
prepare_release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
uses: actions/checkout@v4 | ||
- name: Set variables | ||
id: vars | ||
run: | | ||
TAG="${{ github.event.inputs.tag }}" | ||
VERSION="${TAG#v}" | ||
echo "TAG=${TAG}" >> $GITHUB_ENV | ||
echo "VERSION=${VERSION}" >> $GITHUB_ENV | ||
- name: Copy deployment files | ||
run: | | ||
mkdir -p deployment/${VERSION} | ||
cp -r deployment/latest/* "deployment/${VERSION}" | ||
- name: Replace 'latest' with version in deployment files | ||
run: | | ||
sed -i 's/csi-driver:latest/csi-driver:${VERSION}/g' deployment/${VERSION}/* | ||
sed -i "s/csi-driver:latest/csi-driver:${VERSION}/g" deployment/${VERSION}/* | ||
- name: Update CHANGELOG.md | ||
run: | | ||
sed -i "s/[Uu]nreleased/${{ github.event.inputs.tag }}/" CHANGELOG.md | ||
- name: Commit changes | ||
run: | | ||
git config --global user.name "Exoscale" | ||
git config --global user.email "[email protected]" | ||
git add deployment/${VERSION} CHANGELOG.md | ||
git commit -m "prepare release ${{ github.event.inputs.tag }}" | ||
- name: Tag the commit | ||
run: | | ||
git tag "${{ github.event.inputs.tag }}" | ||
- name: Push commit and tags | ||
run: | | ||
git push origin HEAD | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Changelog | ||
|
||
## v0.31.2 | ||
## Unreleased | ||
|
||
### Improvements | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.