forked from mosip/inji-wallet
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[INJIMOB-990] add a job to set the client id and pass to reusable wor…
…kflow (mosip#1348) * [INJIMOB-990] add a job to set the client id and pass to reusable workflow Signed-off-by: adityankannan-tw <adityan410pm@gmail.com> * [INJIMOB-990] refactor output github env variable Signed-off-by: adityankannan-tw <adityan410pm@gmail.com> --------- Signed-off-by: adityankannan-tw <adityan410pm@gmail.com> Co-authored-by: adityankannan-tw <adityan410pm@gmail.com>
- Loading branch information
1 parent
be106f0
commit 06fff78
Showing
4 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
flavor="$1" | ||
|
||
if [[ "$flavor" == "residentapp" ]]; then | ||
echo "CLIENT_ID=INJI_GOOGLE_CLIENT_ID" >> $GITHUB_OUTPUT | ||
elif [[ "$flavor" == "collab" ]]; then | ||
echo "CLIENT_ID=COLLAB_ORG_KEY" >> $GITHUB_OUTPUT | ||
elif [[ "$flavor" == "synergy" ]]; then | ||
echo "CLIENT_ID=SYNERGY_ORG_KEY" >> $GITHUB_OUTPUT | ||
elif [[ "$flavor" == "inji" ]]; then | ||
echo "CLIENT_ID=INJI_ORG_KEY" >> $GITHUB_OUTPUT | ||
elif [[ "$flavor" == "mec" ]]; then | ||
echo "CLIENT_ID=MEC_ORG_KEY" >> $GITHUB_OUTPUT | ||
else | ||
echo "Error: Invalid flavor '$flavor'" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters