-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bb7fff9
commit a47e1de
Showing
1 changed file
with
0 additions
and
46 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 |
---|---|---|
|
@@ -23,52 +23,6 @@ jobs: | |
- | ||
name: Fetch All Tags | ||
run: git fetch --force --tags | ||
- | ||
name: Determine Next Version | ||
id: next_version | ||
uses: zwaldowski/semver-release-action@v3 | ||
with: | ||
dry_run: true | ||
bump: "patch" | ||
prefix: "v" | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
- | ||
name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.21 | ||
- | ||
name: Ensure Changelog | ||
run: | | ||
if test -f ./.changes/${{ steps.next_version.outputs.version_tag }}.md | ||
then | ||
echo "Skip Changie..." | ||
else | ||
go install github.com/miniscruff/changie@latest | ||
changie batch ${{ steps.next_version.outputs.version_tag }} | ||
changie merge | ||
fi | ||
- | ||
name: Commit & Tag Release | ||
run: | | ||
git config user.name "OpsLevel Bots" | ||
git config user.email "[email protected]" | ||
if [[ $(git diff --stat) != '' ]]; | ||
then | ||
git add . | ||
git commit -m "Cut Release '${{ steps.next_version.outputs.version_tag }}'" | ||
git push origin HEAD | ||
else | ||
echo "Skip commit" | ||
fi | ||
git tag -f ${{ steps.next_version.outputs.version_tag }} -m "Cut Release '${{ steps.next_version.outputs.version_tag }}'" | ||
git push -f origin refs/tags/${{ steps.next_version.outputs.version_tag }} | ||
- | ||
name: Ensure Release Does Not Exist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
gh release delete ${{ steps.next_version.outputs.version_tag }} || true | ||
- | ||
name: Install Helm | ||
uses: azure/setup-helm@v1 | ||
|