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 5454 uses : actions/checkout@v4
5555 - name : Release
5656 uses : softprops/action-gh-release@v2
57- if : startsWith( github.ref, 'refs/tags/')
57+ if : github.ref_type == 'tag'
5858` ` `
5959
6060You can also use push config tag filter
@@ -106,7 +106,7 @@ jobs:
106106 run: cat Release.txt
107107 - name: Release
108108 uses: softprops/action-gh-release@v2
109- if: startsWith( github.ref, 'refs/tags/')
109+ if: github.ref_type == 'tag'
110110 with:
111111 files: Release.txt
112112` ` `
@@ -130,7 +130,7 @@ jobs:
130130 run: cat Release.txt
131131 - name: Release
132132 uses: softprops/action-gh-release@v2
133- if: startsWith( github.ref, 'refs/tags/')
133+ if: github.ref_type == 'tag'
134134 with:
135135 files: |
136136 Release.txt
@@ -162,7 +162,7 @@ jobs:
162162 run: echo "# Good things have arrived" > ${{ github.workspace }}-CHANGELOG.txt
163163 - name: Release
164164 uses: softprops/action-gh-release@v2
165- if: startsWith( github.ref, 'refs/tags/')
165+ if: github.ref_type == 'tag'
166166 with:
167167 body_path: ${{ github.workspace }}-CHANGELOG.txt
168168 repository: my_gh_org/my_gh_repo
You can’t perform that action at this time.
0 commit comments