Skip to content

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
NohGaSeong authored Jul 12, 2024
1 parent 0bedb47 commit fecd026
Showing 1 changed file with 20 additions and 22 deletions.
42 changes: 20 additions & 22 deletions .github/workflows/other-create-application-yml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,27 @@ on: workflow_call
jobs:
check-and-create-application-yml:
runs-on: ubuntu-latest
run: |
echo "hello"
# steps:
# - name: Checkout code
# uses: actions/checkout@v2
steps:
- name: Checkout code
uses: actions/checkout@v2

# - name: Checkout code
# uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v2

# - name: Check if application.yml exists
# id: check_file
# uses: andstor/file-existence-action@v3
# with:
# files: "./$APPLICATION_NAME/src/main/resources/application.yml"
- name: Check if application.yml exists
id: check_file
uses: andstor/file-existence-action@v3
with:
files: "./$APPLICATION_NAME/src/main/resources/application.yml"

# - name: Create application.yml if it does not exist
# if: steps.check_file.outputs.files_exists == 'false'
# run: |
# touch ./sms-APPLICATION_NAME/src/main/resources/application.yml
# echo "${{ secrets.BACKEND_ENV }}" > ./$APPLICATION_NAME/src/main/resources/application.yml
# shell: bash
- name: Create application.yml if it does not exist
if: steps.check_file.outputs.files_exists == 'false'
run: |
touch ./sms-APPLICATION_NAME/src/main/resources/application.yml
echo "${{ secrets.BACKEND_ENV }}" > ./$APPLICATION_NAME/src/main/resources/application.yml
shell: bash

# - name: Perform action if application.yml exists
# if: steps.check_file.outputs.files_exists == 'true'
# run: |
# echo "${{ secrets.BACKEND_ENV }}" > ./$APPLICATION_NAME/src/main/resources/application.yml
- name: Perform action if application.yml exists
if: steps.check_file.outputs.files_exists == 'true'
run: |
echo "${{ secrets.BACKEND_ENV }}" > ./$APPLICATION_NAME/src/main/resources/application.yml

0 comments on commit fecd026

Please sign in to comment.