Skip to content

Commit 06a8579

Browse files
Use printf to pipe credentials to file
1 parent 7916232 commit 06a8579

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build-test.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,12 @@ jobs:
9292
working-directory: ${{ env.GITHUB_WORKSPACE }}
9393
run: |
9494
mkdir -p gdrive
95-
echo "${{ env.SECRET_GOOGLE_CREDENTIALS }}" > secret.b64
95+
printf "%s\n" "${{ env.SECRET_GOOGLE_CREDENTIALS }}" > secret.b64
96+
echo "***base64***"
97+
cat secret.b64
9698
openssl base64 -d -A -in secret.b64 -out gdrive/credentials.json
99+
echo "***JSON***"
100+
cat gdrive/credentials.json
97101
echo "GDRIVE_CREDENTIALS=`pwd`/gdrive/credentials.json" >> $GITHUB_ENV
98102
99103
- name: install conan
@@ -561,7 +565,7 @@ jobs:
561565
exit 0
562566

563567
- name: upload to google sheets
564-
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
568+
#if: github.ref == 'refs/heads/master' && github.event_name == 'push'
565569
working-directory: ${{ env.RUNNER_WORKSPACE }}
566570
shell: bash
567571
run: |

0 commit comments

Comments
 (0)