Skip to content

Commit fa453f7

Browse files
author
zhengmz-docker
committed
HiWiFi.yml: merge schedule and workflow_dispatch
1 parent e18dd28 commit fa453f7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/HiWiFi.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ env:
7171
#CREATE_RELEASE: true
7272
#DELETE_OLD_RELEASE: true
7373
#DELETE_OLD_RUN: true
74-
BUILD_SDK: ${{ github.event.inputs.build_sdk }}
75-
USE_CACHE: ${{ github.event.inputs.use_cache }}
76-
UPLOAD_ARTIFACT: ${{ github.event.inputs.upload_artifact }}
77-
SYNC_CODE: ${{ github.event.inputs.sync_code }}
78-
CREATE_RELEASE: ${{ github.event.inputs.create_release }}
79-
DELETE_OLD_RELEASE: ${{ github.event.inputs.delete_release }}
80-
DELETE_OLD_RUN: ${{ github.event.inputs.delete_run }}
74+
BUILD_SDK: ${{ github.event.inputs.build_sdk == '' && 'false' || github.event.inputs.build_sdk }}
75+
USE_CACHE: ${{ github.event.inputs.use_cache == '' && 'true' || github.event.inputs.use_cache }}
76+
UPLOAD_ARTIFACT: ${{ github.event.inputs.upload_artifact == '' && 'true' || github.event.inputs.upload_artifact }}
77+
SYNC_CODE: ${{ github.event.inputs.sync_code == '' && 'true' || github.event.inputs.sync_code }}
78+
CREATE_RELEASE: ${{ github.event.inputs.create_release == '' && 'true' || github.event.inputs.create_release }}
79+
DELETE_OLD_RELEASE: ${{ github.event.inputs.delete_release == '' && 'true' || github.event.inputs.delete_release }}
80+
DELETE_OLD_RUN: ${{ github.event.inputs.delete_run == '' && 'true' || github.event.inputs.delete_run }}
8181

8282
jobs:
8383
#sync-code:
@@ -303,7 +303,7 @@ jobs:
303303
uses: ncipollo/release-action@v1
304304
if: env.CREATE_RELEASE == 'true'
305305
with:
306-
name: HiWiFi ${{ matrix.model }} ${{ env.BUILD_TIME }}
306+
name: HiWiFi ${{ matrix.model }} ${{ env.BUILD_SDK == 'true' && 'SDK' || '' }} ${{ env.BUILD_TIME }}
307307
allowUpdates: true
308308
tag: ${{ env.TAG_NAME }}
309309
commit: master

0 commit comments

Comments
 (0)