Skip to content
name: Create application yml
on: workflow_call
workflow_dispatch:

Check failure on line 3 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 3
inputs:
application_name:
description: 'The name of the application'
required: true
env:
APPLICATION_NAME: ${{ inputs.application_name }}
jobs:
check-and-create-application-yml:
runs-on: ubuntu-latest
steps:
- 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 ./$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