Skip to content
name: Create application yml
on: workflow_call
jobs:
check-and-create-application-yml:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

Check failure on line 10 in .github/workflows/other-create-application-yml.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/other-create-application-yml.yml

Invalid workflow file

You have an error in your yaml syntax on line 10
- 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: 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