Skip to content

Commit 1168767

Browse files
authored
chore(ci): add feat/design-refresh branch for internal distribution (#2504)
* chore(ci): Ensure platform determination step succeeds In the `distribute_internal` and `distribute_external` workflows, the `determine_platforms` job would fail on manual runs when a single platform was selected. This was due to the shell command exiting with a non-zero status code if a condition was false. By appending `|| true`, the commands now always exit successfully, ensuring the workflow proceeds correctly regardless of the platform selection. * chore: add feat/design-refresh branch for automatic internal distribution
1 parent e2c4971 commit 1168767

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/distribute_external.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ jobs:
4848
echo "Selected platform: $platform"
4949
5050
# Set outputs only if they should be true
51-
[[ "$platform" == "ios" || "$platform" == "both" ]] && echo "run_ios=true" >> $GITHUB_OUTPUT
52-
[[ "$platform" == "android" || "$platform" == "both" ]] && echo "run_android=true" >> $GITHUB_OUTPUT
51+
[[ "$platform" == "ios" || "$platform" == "both" ]] && echo "run_ios=true" >> $GITHUB_OUTPUT || true
52+
[[ "$platform" == "android" || "$platform" == "both" ]] && echo "run_android=true" >> $GITHUB_OUTPUT || true
5353
5454
android:
5555
needs: determine_platforms

.github/workflows/distribute_internal.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- master
7+
# TODO: Remove feat/design-refresh once merged to master
8+
- feat/design-refresh
79
workflow_dispatch:
810
inputs:
911
platform:
@@ -49,8 +51,8 @@ jobs:
4951
echo "Selected platform: $platform"
5052
5153
# Set outputs only if they should be true
52-
[[ "$platform" == "ios" || "$platform" == "both" ]] && echo "run_ios=true" >> $GITHUB_OUTPUT
53-
[[ "$platform" == "android" || "$platform" == "both" ]] && echo "run_android=true" >> $GITHUB_OUTPUT
54+
[[ "$platform" == "ios" || "$platform" == "both" ]] && echo "run_ios=true" >> $GITHUB_OUTPUT || true
55+
[[ "$platform" == "android" || "$platform" == "both" ]] && echo "run_android=true" >> $GITHUB_OUTPUT || true
5456
5557
android:
5658
needs: determine_platforms

0 commit comments

Comments
 (0)