Skip to content

Commit 58d5083

Browse files
authored
Make sure jobs keep trigger even if update version job is skipped (#352)
1 parent c596d72 commit 58d5083

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/build_starter.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,13 @@ 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 build_unity_sdks -k platform -o "${{ github.event.inputs.platforms }}" )
78+
platform=$( python scripts/gha/print_matrix_configuration.py -c -w config -k platform -o "${{ github.event.inputs.platforms }}" )
7979
echo "::set-output name=platform::${platform}"
8080
echo "::set-output name=release_label::${{ github.event.inputs.release_version }}-${{ github.event.inputs.rc_index }}"
81+
- name: Print output
82+
run: |
83+
echo outputs.platform : ${{ steps.set_outputs.outputs.platform }}
84+
echo outputs.release_label : ${{ steps.set_outputs.outputs.release_label }}
8185
8286
update_versions:
8387
uses: ./.github/workflows/update_versions.yml
@@ -93,6 +97,7 @@ jobs:
9397
decide_build_branch:
9498
needs: update_versions
9599
runs-on: ubuntu-latest
100+
if: always()
96101
outputs:
97102
build_branch: ${{ steps.decide_branch.outputs.branch }}
98103
steps:
@@ -109,7 +114,7 @@ jobs:
109114
name: build-android-unity${{ github.event.inputs.unity_version }}-CPP${{ github.event.inputs.firebase_cpp_sdk_version }}
110115
uses: ./.github/workflows/build_android.yml
111116
needs: [check_and_prepare, decide_build_branch]
112-
if: contains(needs.check_and_prepare.outputs.platform, 'Android')
117+
if: always() && contains(needs.check_and_prepare.outputs.platform, 'Android')
113118
with:
114119
unity_version: ${{ github.event.inputs.unity_version }}
115120
firebase_cpp_sdk_version: ${{ github.event.inputs.firebase_cpp_sdk_version }}
@@ -122,7 +127,7 @@ jobs:
122127
name: build-ios-unity${{ github.event.inputs.unity_version }}-CPP${{ github.event.inputs.firebase_cpp_sdk_version }}
123128
uses: ./.github/workflows/build_ios.yml
124129
needs: [check_and_prepare, decide_build_branch]
125-
if: contains(needs.check_and_prepare.outputs.platform, 'iOS')
130+
if: always() && contains(needs.check_and_prepare.outputs.platform, 'iOS')
126131
with:
127132
unity_version: ${{ github.event.inputs.unity_version }}
128133
firebase_cpp_sdk_version: ${{ github.event.inputs.firebase_cpp_sdk_version }}
@@ -135,7 +140,7 @@ jobs:
135140
name: build-linux-unity${{ github.event.inputs.unity_version }}-CPP${{ github.event.inputs.firebase_cpp_sdk_version }}
136141
uses: ./.github/workflows/build_linux.yml
137142
needs: [check_and_prepare, decide_build_branch]
138-
if: contains(needs.check_and_prepare.outputs.platform, 'Linux')
143+
if: always() && contains(needs.check_and_prepare.outputs.platform, 'Linux')
139144
with:
140145
unity_version: ${{ github.event.inputs.unity_version }}
141146
firebase_cpp_sdk_version: ${{ github.event.inputs.firebase_cpp_sdk_version }}
@@ -148,7 +153,7 @@ jobs:
148153
name: build-macos-unity${{ github.event.inputs.unity_version }}-CPP${{ github.event.inputs.firebase_cpp_sdk_version }}
149154
uses: ./.github/workflows/build_macos.yml
150155
needs: [check_and_prepare, decide_build_branch]
151-
if: contains(needs.check_and_prepare.outputs.platform, 'macOS')
156+
if: always() && contains(needs.check_and_prepare.outputs.platform, 'macOS')
152157
with:
153158
unity_version: ${{ github.event.inputs.unity_version }}
154159
firebase_cpp_sdk_version: ${{ github.event.inputs.firebase_cpp_sdk_version }}
@@ -161,7 +166,7 @@ jobs:
161166
name: build-windows-unity${{ github.event.inputs.unity_version }}-CPP${{ github.event.inputs.firebase_cpp_sdk_version }}
162167
uses: ./.github/workflows/build_windows.yml
163168
needs: [check_and_prepare, decide_build_branch]
164-
if: contains(needs.check_and_prepare.outputs.platform, 'Windows')
169+
if: always() && contains(needs.check_and_prepare.outputs.platform, 'Windows')
165170
with:
166171
unity_version: ${{ github.event.inputs.unity_version }}
167172
firebase_cpp_sdk_version: ${{ github.event.inputs.firebase_cpp_sdk_version }}

0 commit comments

Comments
 (0)