-
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
2be867a
commit 6c4d45e
Showing
2 changed files
with
17 additions
and
5 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 |
---|---|---|
@@ -1,3 +1,14 @@ | ||
#!/bin/sh | ||
files=$(jq -r '.apps[] | "./apps/" + . + "/build/outputs/apk/debug/" + . + "-debug.apk ./apps/" + . + "/build/outputs/apk/release/" + . + "-release.apk"' apps-config.json) | ||
echo "files=$files" >> $GITHUB_ENV | ||
#!/bin/bash | ||
|
||
# Read the JSON file | ||
json=$(cat your_file.json) | ||
|
||
# Extract the app names | ||
apps=$(echo "$json" | jq -r '.apps | join(",")') | ||
|
||
# Create the debug and release lines | ||
debug_line="apps/{$apps}/build/outputs/apk/debug/{$apps}-debug.apk" | ||
release_line="apps/{$apps}/build/outputs/apk/release/{$apps}-release-unsigned.apk" | ||
|
||
# Print the lines | ||
echo -e "$debug_line\n$release_line" |
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