Skip to content

Commit

Permalink
Merge pull request #296 from linglong67/hotfix/cicd-yml-modify
Browse files Browse the repository at this point in the history
[hotfix] cicd yml modify
  • Loading branch information
linglong67 committed Mar 14, 2024
2 parents e8accd7 + f533855 commit aab1802
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cicd-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:

- name: Replace SQL Queries
run: |
file_path="${{ secrets.TARGET_SQL_PATH }}"
dir_path="./module-api/src/main/resources/db/migration"
old_text="changeRequired"
new_text="${{ secrets.PUBLIC_KEY }}"
sed -i "s/$old_text/$new_text/g" $file_path
find "dir_path" -type f -name "*.sql" -exec sed -i "s|old_text|new_text|g" {} +
- name: Set application yml file (api)
uses: microsoft/variable-substitution@v1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cicd-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:

- name: Replace SQL Queries
run: |
file_path="${{ secrets.TARGET_SQL_PATH }}"
dir_path="./module-api/src/main/resources/db/migration"
old_text="changeRequired"
new_text="${{ secrets.PUBLIC_KEY }}"
sed -i "s/$old_text/$new_text/g" $file_path
find "dir_path" -type f -name "*.sql" -exec sed -i "s|old_text|new_text|g" {} +
- name: Set application yml file (api)
uses: microsoft/variable-substitution@v1
Expand Down

0 comments on commit aab1802

Please sign in to comment.