Skip to content

Commit

Permalink
refactor: change variables names
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacek Kaczmarek committed Jun 8, 2024
1 parent 80f6409 commit 7015c59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ jobs:
- uses: actions/checkout@v4

- name: Update db url
run: sed -i 's/<db_url>/${{ secrets.DB_URL }}/' src/main/resources/application.properties
run: sed -i 's/${DB_URL}/${{ secrets.DB_URL }}/' src/main/resources/application.properties

- name: Update db username
run: sed -i 's/<db_username>/${{ secrets.DB_USERNAME }}/' src/main/resources/application.properties
run: sed -i 's/${DB_USERNAME}/${{ secrets.DB_USERNAME }}/' src/main/resources/application.properties

- name: Update db password
run: sed -i 's/<db_password>/${{ secrets.DB_PASSWORD }}/' src/main/resources/application.properties
run: sed -i 's/${DB_PASSWORD}/${{ secrets.DB_PASSWORD }}/' src/main/resources/application.properties

- name: Set up JDK 21
uses: actions/setup-java@v3
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Database
spring.datasource.driverClassName=org.h2.Driver
spring.datasource.url=<db_url>
spring.datasource.username=<db_username>
spring.datasource.password=<db_password>
spring.datasource.url=${DB_URL}
spring.datasource.username=${DB_USERNAME}
spring.datasource.password=${DB_PASSWORD}

# Swagger
springfox.documentation.swagger-ui.enabled=true
Expand Down

0 comments on commit 7015c59

Please sign in to comment.