File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : my-test-build
22
33on :
4- repository_dispatch :
54 workflow_dispatch :
65 inputs :
7- ssh :
8- description : ' SSH connection to Actions'
9- required : false
10- default : ' false'
116 tag_name :
127 description : ' Tag name for the release'
138 required : false
149 default : ' v1.0.0'
15- watch :
16- types : [ started ]
1710 push :
18- branches :
19- - master
20- - main
21- paths-ignore :
22- - ' **.md'
23- - ' .github/**'
24- - ' !.github/workflows/my-test-build.yml'
2511 tags :
2612 - " v*"
2713
28- concurrency :
29- group : ${{ github.workflow }}-${{ github.ref }}
30- cancel-in-progress : true
31-
3214jobs :
3315 build :
3416 runs-on : ${{ matrix.os }}
@@ -210,21 +192,20 @@ jobs:
210192 echo "tag_name=${{ github.event.inputs.tag_name || github.ref_name }}" >> $GITHUB_ENV
211193
212194 - name : Upload Release
213- uses : softprops/action-gh-release@v2
195+ uses : softprops/action-gh-release@v2.2.1
214196 with :
215197 tag_name : " ${{ env.tag_name }}"
216- name : " ${{ env .tag_name }}"
198+ name : " ${{ github.event.inputs .tag_name }}"
217199 body : " ${{ fromJson(steps.version.outputs.content).version_desc }}"
218- prerelease : ${{ fromJson(steps.version.outputs.content).prerelease || false }}
219- token : ${{ secrets.GITHUB_TOKEN }}
200+ token : ${{ secrets.TOKEN }}
220201 files : |
221202 dist_2/**/* # 递归上传所有文件
222203 draft : false
223204
224205 - name : Delete workflow runs
225206 uses : Mattraks/delete-workflow-runs@v2
226207 with :
227- token : ${{ secrets.GITHUB_TOKEN }}
208+ token : ${{ secrets.TOKEN }}
228209 repository : ${{ github.repository }}
229210 retain_days : 0
230211 keep_minimum_runs : 3
Original file line number Diff line number Diff line change 66 inputs :
77 tag_name :
88 description : ' Tag name for the release'
9- required : true
9+ required : false
1010 default : ' v1.0.0'
1111 push :
1212 tags :
You can’t perform that action at this time.
0 commit comments