File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 54
54
uses : actions/checkout@v4
55
55
- name : Release
56
56
uses : softprops/action-gh-release@v2
57
- if : startsWith( github.ref, 'refs/tags/')
57
+ if : github.ref_type == 'tag'
58
58
` ` `
59
59
60
60
You can also use push config tag filter
@@ -106,7 +106,7 @@ jobs:
106
106
run: cat Release.txt
107
107
- name: Release
108
108
uses: softprops/action-gh-release@v2
109
- if: startsWith( github.ref, 'refs/tags/')
109
+ if: github.ref_type == 'tag'
110
110
with:
111
111
files: Release.txt
112
112
` ` `
@@ -130,7 +130,7 @@ jobs:
130
130
run: cat Release.txt
131
131
- name: Release
132
132
uses: softprops/action-gh-release@v2
133
- if: startsWith( github.ref, 'refs/tags/')
133
+ if: github.ref_type == 'tag'
134
134
with:
135
135
files: |
136
136
Release.txt
@@ -162,7 +162,7 @@ jobs:
162
162
run: echo "# Good things have arrived" > ${{ github.workspace }}-CHANGELOG.txt
163
163
- name: Release
164
164
uses: softprops/action-gh-release@v2
165
- if: startsWith( github.ref, 'refs/tags/')
165
+ if: github.ref_type == 'tag'
166
166
with:
167
167
body_path: ${{ github.workspace }}-CHANGELOG.txt
168
168
repository: my_gh_org/my_gh_repo
You can’t perform that action at this time.
0 commit comments