Skip to content

Commit

Permalink
fix: echo env and secrets in the GitHub action job
Browse files Browse the repository at this point in the history
  • Loading branch information
cybersokari committed Apr 17, 2024
1 parent ff86312 commit b37050f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,19 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Write value to Properties-file
uses: christian-draeger/[email protected]
env:
MONGODB_URI: ${{ secrets.MONGODB_URI }}
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
GCLOUD_SERVICE_KEY: ${{secrets.GCLOUD_SERVICE_KEY}}

- name: Use Secrets
run: |
echo "MONGODB URI: "$MONGODB_URI"
echo "GOOGLE CLIENT ID: "$GOOGLE_CLIENT_ID"
echo "GCLOUD SERVICE KEY: "$GCLOUD_SERVICE_KEY"
- name: Write value to Properties-file
uses: christian-draeger/[email protected]
with:
path: './src/main/resources/application.properties'
property: |
Expand Down

0 comments on commit b37050f

Please sign in to comment.