File tree Expand file tree Collapse file tree 1 file changed +16
-11
lines changed
Expand file tree Collapse file tree 1 file changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -41,20 +41,25 @@ jobs:
4141 feature-debug :
4242 name : " Feature / Debug"
4343 runs-on : ubuntu-latest
44+ env :
45+ DEPLOY_SECRETS : ${{ secrets.DEPLOY_SECRETS }}
4446 steps :
4547 - name : Debug Something
4648 run : |
47- echo VAR1: "${{ inputs.VAR1 }}"
48- printf 'VAR1: ${{ inputs.VAR1 }}\n'
49-
50- echo ANOTHERTHING: "${{secrets.ANOTHERTHING}}"
51-
52- echo DEPLOY_SECRETS: "${{ secrets.DEPLOY_SECRETS }}"
53- while IFS='=' read -r key json_value; do
54- value="$(jq -Rs '.' <<< "$json_value")"
55- echo "$key"
56- echo "$value"
57- done <<< '${{ secrets.DEPLOY_SECRETS }}'
49+ delimiter="EOF-$(date +%s%N)"
50+ while IFS= read -r line; do
51+ key="$(echo "$line" | cut -d'=' -f1)"
52+ json_value="$(echo "$line" | cut -d'=' -f2-)"
53+ value="$(jq -r '.' <<< "$json_value")"
54+ printf "$key<<$delimiter\n" >> $GITHUB_ENV
55+ printf "$value\n" >> $GITHUB_ENV
56+ printf "$delimiter\n" >> $GITHUB_ENV
57+ done <<< "$DEPLOY_SECRETS"
58+ - name : Next Part
59+ run : |
60+ echo $SECRET1
61+ echo $SECRET2
62+ echo $SECRET3
5863
5964 # # Lint the code
6065 # feature-lint:
You can’t perform that action at this time.
0 commit comments