Skip to content

Commit 9deb19f

Browse files
committed
Update secrets in application.properties file
1 parent 7bf04d4 commit 9deb19f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/tests.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ jobs:
3232

3333
- name: Replace secrets in application.properties
3434
run: |
35-
sed -i "s/\${DB_CONN_STR}/${{ vars.DB_CONN_STR }}/g" src/main/resources/application.properties
36-
sed -i "s/\${DB_USERNAME}/${{ vars.DB_USERNAME }}/g" src/main/resources/application.properties
37-
sed -i "s/\${DB_PASSWORD}/${{ secrets.DB_PASSWORD }}/g" src/main/resources/application.properties
35+
sed -i "s#\\${DB_CONN_STR}#${{ vars.DB_CONN_STR }}#g" src/main/resources/application.properties
36+
sed -i "s#\\${DB_USERNAME}#${{ vars.DB_USERNAME }}#g" src/main/resources/application.properties
37+
sed -i "s#\\${DB_PASSWORD}#${{ secrets.DB_PASSWORD }}#g" src/main/resources/application.properties
38+
shell: /usr/bin/bash -e {0}
3839

3940
- name: Run Gradle Tests
4041
id: run

0 commit comments

Comments
 (0)