Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ on:
push:
branches:
- main

permissions:
contents: write # we need this to be able to push tags
pull-requests: read

jobs:
release_tag:
name: Release version
Expand Down Expand Up @@ -38,7 +38,7 @@ jobs:
echo "Skipping development version release: ${{ env.version }}"
echo "SKIP=true" >> $GITHUB_ENV
exit 0

- name: Check if VERSION is already tagged
id: check_tag
run: |
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:

- name: Build Changelog
id: github_release

uses: mikepenz/release-changelog-builder-action@v5
with:
mode: "PR"
Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:
}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create GitHub release
if: ${{ env.SKIP != 'true' }}
uses: softprops/action-gh-release@v2
Expand All @@ -120,5 +120,5 @@ jobs:
git config user.name "${{ env.AUTHOR_NAME }}"
git config user.email "${{ env.AUTHOR_EMAIL }}"
git add VERSION charts/metrics-operator/Chart.yaml charts/metrics-operator/values.yaml
git commit -m "Update VERSION to ${{ env.version }}-dev"
git commit -m "chore: update VERSION to ${{ env.version }}-dev"
git push origin main
Loading