Skip to content

Commit

Permalink
ci(init): fix repository being initialized before template file has b…
Browse files Browse the repository at this point in the history
…een edited
  • Loading branch information
Silverlan authored Jun 19, 2024
1 parent f49cc42 commit d2b9d6c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ jobs:
with:
filepath: './template_pragma_module.json'

- name: Check If Template Filled In
id: check-template-filled-in
run: |
if [ "${{ steps.module-info.outputs.name }}" == "Project Name" ]; then
echo "Module name has not been changed, cancelling initialization. Please edit 'template_pragma_module.json' and push your changes."
exit 1
fi
- id: template_exists
name: Check template
uses: andstor/file-existence-action@v1
Expand Down

0 comments on commit d2b9d6c

Please sign in to comment.