Skip to content

Commit

Permalink
make action compatible with template
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzocerrone committed Aug 16, 2024
1 parent 243b4d2 commit ebbec52
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ jobs:
run: python -m pip install -e .[dev]

- name: Regenerate the manifest
run: python src/my_project/dev/create_manifest.py
run: python src/{{package_name}}/dev/create_manifest.py

- name: Check if manifest has changed
run: |
if [ -n "$(git diff --exit-code ./src/my_project/__FRACTAL_MANIFEST__.json)" ]; then
echo "__FRACTAL_MANIFEST__.json has changed. Please run 'python src/my_project/dev/create_manifest.py' and commit the changes."
if [ -n "$(git diff --exit-code ./src/{{package_name}}/__FRACTAL_MANIFEST__.json)" ]; then
echo "__FRACTAL_MANIFEST__.json has changed. Please run 'python src/{{package_name}}/dev/create_manifest.py' and commit the changes."
exit 1
else
echo "__FRACTAL_MANIFEST__.json has not changed."
Expand Down

0 comments on commit ebbec52

Please sign in to comment.