Skip to content

Commit a6b4bf5

Browse files
author
liuchuancong
committed
fix(*)
1 parent 3573688 commit a6b4bf5

2 files changed

Lines changed: 5 additions & 24 deletions

File tree

.github/workflows/dart.yml

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,16 @@
11
name: my-test-build
22

33
on:
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-
3214
jobs:
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

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
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:

0 commit comments

Comments
 (0)