Skip to content

Commit 8cfa1cf

Browse files
authored
fix: release on github release (#103)
1 parent 167ade5 commit 8cfa1cf

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: PROD
22
on:
3+
release:
4+
types: [published]
35
workflow_dispatch:
46
inputs:
57
containers_tag:
@@ -20,9 +22,9 @@ jobs:
2022
name: Vars
2123
runs-on: ubuntu-24.04
2224
outputs:
23-
tag: ${{ steps.changelog.outputs.tag }}
24-
version: ${{ steps.changelog.outputs.version }}
25-
clean_changelog: ${{ steps.changelog.outputs.clean_changelog }}
25+
tag: ${{ steps.changelog.outputs.tag || github.event.release.tag_name || '' }}
26+
version: ${{ steps.changelog.outputs.version || github.event.release.tag_name || '' }}
27+
clean_changelog: ${{ steps.changelog.outputs.clean_changelog || '' }}
2628
steps:
2729
- uses: actions/checkout@v4
2830
- name: Conventional Changelog Update
@@ -74,7 +76,7 @@ jobs:
7476
name: Github Release
7577
runs-on: ubuntu-24.04
7678
needs: [vars, deploy]
77-
if: ${{ needs.vars.outputs.tag != '' }}
79+
if: (needs.vars.outputs.tag != '' && github.event_name != 'release')
7880
steps:
7981
- name: Create Release
8082
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)