-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f59e060
commit af5dcf8
Showing
2 changed files
with
39 additions
and
22 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -27,39 +27,39 @@ jobs: | |
run: | | ||
echo "$(cat ./test.json | jq '(.| .MOBILE_CONFIG_VALUES | .ISAGE_URLS)')" > ios_build_config_values.json | ||
- name: prop file json to env variables | ||
uses: antifree/[email protected] | ||
- name: Get build properties | ||
id: propsFromBuildConfig | ||
uses: RadovanPelka/github-action-json@main | ||
with: | ||
filename: test.json | ||
path: "ios_build_config_values.json" | ||
|
||
- name: test | ||
id: test | ||
run: | | ||
MOBILE_CONFIG_VALUES=$(cat ios_build_config_values.json) | ||
ESCAPED_MOBILE_CONFIG_VALUES=$(echo $MOBILE_CONFIG_VALUES | jq -c '.') | ||
# MOBILE_CONFIG_VALUES=$(cat ios_build_config_values.json) | ||
# ESCAPED_MOBILE_CONFIG_VALUES=$(echo $MOBILE_CONFIG_VALUES | jq -c '.') | ||
echo "************************" | ||
echo "ESCAPED_MOBILE_CONFIG_VALUES : $ESCAPED_MOBILE_CONFIG_VALUES" | ||
echo "************************" | ||
# echo "************************" | ||
# echo "ESCAPED_MOBILE_CONFIG_VALUES : $ESCAPED_MOBILE_CONFIG_VALUES" | ||
# echo "************************" | ||
echo "MOBILE_CONFIG_VALUES=$(echo $MOBILE_CONFIG_VALUES | jq -c '.')" >> "$GITHUB_ENV" | ||
# echo "MOBILE_CONFIG_VALUES=$(echo $MOBILE_CONFIG_VALUES | jq -c '.')" >> "$GITHUB_ENV" | ||
TEST=$(jq '(.| .isage | .scheme)' ./test.json ) >> $GITHUB_ENV | ||
echo "TEST=${{ toJson(env.TEST) }}" >> $GITHUB_OUTPUT | ||
echo "scheme=$${{ toJSON(steps.propsFromBuildConfig.outputs.scheme) }}" >> $GITHUB_OUTPUT | ||
- name: Substitute env variables in network.json file | ||
env: | ||
MOBILE_CONFIG_VALUES: "${{ env.MOBILE_CONFIG_VALUES }}" | ||
uses: danielr1996/[email protected] | ||
with: | ||
input: "./network.json" | ||
output: "./Network-Final.json" | ||
# - name: Substitute env variables in network.json file | ||
# env: | ||
# MOBILE_CONFIG_VALUES: "${{ env.MOBILE_CONFIG_VALUES }}" | ||
# uses: danielr1996/[email protected] | ||
# with: | ||
# input: "./network.json" | ||
# output: "./Network-Final.json" | ||
|
||
# - name: testing construction | ||
# run: | | ||
# echo -n "{\"country\":${{ env.MOBILE_CONFIG_VALUES }},\"model_number\":\"${MODELNUMBER}\",\"version_number\":\"${SERVERVERSION}\",\"mfg_date\":\"${MFGDATE}\"} | sed -e 's/^"//' -e 's/"$//" > Network-Final.json | ||
|
||
- name: final test | ||
run: | | ||
cat "./Network-Final.json" | ||
echo "test: ${{ steps.test.outputs.TEST }}" | ||
# cat "./Network-Final.json" | ||
echo "test: ${{ steps.test.outputs.scheme }}" |
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