Skip to content

Commit 82446f2

Browse files
committed
update action to release on tag
1 parent 4671738 commit 82446f2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
GITVERSION_MAJORMINORPATCH: ${{ steps.gitversion.outputs.majorMinorPatch }}
6969

7070
- name: Build Changelog 📝
71-
if: ${{ github.ref == 'refs/heads/main' }}
71+
if: startsWith(github.ref, 'refs/tags/v')
7272
id: build_changelog
7373
uses: mikepenz/release-changelog-builder-action@v1
7474
with:
@@ -77,7 +77,7 @@ jobs:
7777
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7878

7979
- name: Create Release 🚀
80-
if: ${{ github.ref == 'refs/heads/main' }}
80+
if: startsWith(github.ref, 'refs/tags/v')
8181
id: create_release
8282
uses: ncipollo/release-action@v1
8383
with:

0 commit comments

Comments
 (0)