File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 94
94
95
95
- name : Create new tag
96
96
id : create_tag
97
- if : github.ref == 'refs/heads/main'
97
+ if : github.ref == 'refs/heads/main' && github.event_name != 'release'
98
98
run : |
99
99
tag_name="web-api-v${{ steps.new_version.outputs.version }}"
100
100
echo "Tag name: $tag_name"
@@ -103,13 +103,13 @@ jobs:
103
103
104
104
- name : Push new tag
105
105
id : push_tag
106
- if : github.ref == 'refs/heads/main'
106
+ if : github.ref == 'refs/heads/main' && github.event_name != 'release'
107
107
run : |
108
108
git push origin --tags
109
109
110
110
- name : " Build Changelog"
111
111
id : build_changelog
112
- if : github.ref == 'refs/heads/main'
112
+ if : github.ref == 'refs/heads/main' && github.event_name != 'release'
113
113
uses : mikepenz/release-changelog-builder-action@v4
114
114
with :
115
115
configurationJson : |
@@ -127,7 +127,7 @@ jobs:
127
127
128
128
- name : Create a GitHub Release
129
129
id : create_release
130
- if : github.ref == 'refs/heads/main'
130
+ if : github.ref == 'refs/heads/main' && github.event_name != 'release'
131
131
uses : actions/create-release@v1
132
132
env :
133
133
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments