From 35b84308d84b870f9adf58f9bec7cb4b733bafea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=85=B8=EA=B0=80=EC=84=B1?= <82383294+NohGaSeong@users.noreply.github.com> Date: Sat, 13 Jul 2024 02:24:21 +0900 Subject: [PATCH] =?UTF-8?q?=E3=85=81=E3=85=87=E3=84=B4=E3=84=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workflows/other-create-application-yml.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/other-create-application-yml.yml b/.github/workflows/other-create-application-yml.yml index 524d75c..d24443c 100644 --- a/.github/workflows/other-create-application-yml.yml +++ b/.github/workflows/other-create-application-yml.yml @@ -6,14 +6,11 @@ on: required: true type: string - -env: - APPLICATION_NAME: ${{ inputs.application_name }} - - jobs: check-and-create-application-yml: runs-on: ubuntu-latest + env: + APPLICATION_NAME: ${{ inputs.application_name }} steps: - name: Checkout code uses: actions/checkout@v2 @@ -22,16 +19,16 @@ jobs: id: check_file uses: andstor/file-existence-action@v3 with: - files: "./$APPLICATION_NAME/src/main/resources/application.yml" + files: "./${{ env.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 ./$APPLICATION_NAME/src/main/resources/application.yml - echo "${{ secrets.BACKEND_ENV }}" > ./$APPLICATION_NAME/src/main/resources/application.yml + touch ./${{ env.APPLICATION_NAME }}/src/main/resources/application.yml + echo "${{ secrets.BACKEND_ENV }}" > ./${{ 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 \ No newline at end of file + echo "${{ secrets.BACKEND_ENV }}" > ./${{ env.APPLICATION_NAME }}/src/main/resources/application.yml \ No newline at end of file