Skip to content

Commit 6f9b7da

Browse files
authored
fix package step and nightly build (#354)
1 parent 58d5083 commit 6f9b7da

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/build_starter.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,15 @@ jobs:
7575
run: pip install -r scripts/gha/requirements.txt
7676
- id: set_outputs
7777
run: |
78-
platform=$( python scripts/gha/print_matrix_configuration.py -c -w config -k platform -o "${{ github.event.inputs.platforms }}" )
79-
echo "::set-output name=platform::${platform}"
80-
echo "::set-output name=release_label::${{ github.event.inputs.release_version }}-${{ github.event.inputs.rc_index }}"
78+
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
79+
platform=$( python scripts/gha/print_matrix_configuration.py -c -w config -k platform -o "${{ github.event.inputs.platforms }}" )
80+
echo "::set-output name=platform::${platform}"
81+
echo "::set-output name=release_label::${{ github.event.inputs.release_version }}-${{ github.event.inputs.rc_index }}"
82+
else
83+
echo "::set-output name=platform::'Android,iOS,Windows,macOS,Linux'"
84+
echo "::set-output name=release_label::nightly-$(date "+%Y%m%d-%H%M%S")"
85+
fi
86+
8187
- name: Print output
8288
run: |
8389
echo outputs.platform : ${{ steps.set_outputs.outputs.platform }}

.github/workflows/package.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ jobs:
304304
python build_package.py --zip_dir=built_artifact
305305
306306
- name: Commit Changes if there is any
307+
if: steps.decide_input.outputs.working_branch != '' || steps.decide_input.outputs.create_new_branch == '1'
307308
run: |
308309
if ! git update-index --refresh; then
309310
git config user.email "[email protected]"
@@ -318,7 +319,7 @@ jobs:
318319
fi
319320
320321
- name: Create PR if there is None
321-
if: steps.decide_input.outputs.working_branch == '' && steps.decide_input.outputs.create_new_branch == '1'
322+
if: steps.decide_input.outputs.working_branch != '' || steps.decide_input.outputs.create_new_branch == '1'
322323
id: push-branch
323324
run: |
324325
if ! git update-index --refresh; then

0 commit comments

Comments
 (0)