Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
nischalstha9 committed Aug 21, 2024
1 parent 41b1a00 commit 6423f6e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,17 @@ jobs:
# Random delimeter string for security
delim=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
EOF=$delim
# Func to parse JSON with multiline strings, using delimeter (Github specific)
to_envs() { jq -r "to_entries[] | \"\(.key)=\(.value)\n\""; }
base64_kv=$(echo "$parsed_vars" | to_envs | base64)
echo $GITHUB_OUTPUT
echo $base64_kv
echo "base64_env<<$EOF" >> $GITHUB_OUTPUT
echo "$base64kv"
echo "$EOF"
echo "base64_env=$base64_kv" >> "$GITHUB_OUTPUT"
echo $GITHUB_OUTPUT
frontend-build:
uses: hotosm/gh-workflows/.github/workflows/[email protected]
Expand Down

0 comments on commit 6423f6e

Please sign in to comment.