Skip to content

Commit

Permalink
Scripts: Use --skip-unchanged for snipinator, avoids unnecessary perm…
Browse files Browse the repository at this point in the history
…ission changes each generation.
  • Loading branch information
realazthat committed Aug 8, 2024
1 parent 78ae39a commit 213d02e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 6 additions & 3 deletions scripts/generate-examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ python -m snipinator.cli \
--force \
--create \
-o "${PROJ_PATH}/mdreftidy/examples/simple_example.sh" \
--chmod-ro
--chmod-ro \
--skip-unchanged


python -m snipinator.cli \
Expand All @@ -43,7 +44,8 @@ python -m snipinator.cli \
--force \
--create \
-o "${PROJ_PATH}/mdreftidy/examples/simple_local-docker_example.sh" \
--chmod-ro
--chmod-ro \
--skip-unchanged


LAST_VERSION=$(tomlq -r -e '.["tool"]["mdreftidy-project-metadata"]["last_stable_release"]' pyproject.toml)
Expand All @@ -55,4 +57,5 @@ python -m snipinator.cli \
--force \
--create \
-o "${PROJ_PATH}/mdreftidy/examples/simple_remote-docker_example-noautorun.sh" \
--chmod-ro
--chmod-ro \
--skip-unchanged
3 changes: 2 additions & 1 deletion scripts/generate-readme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ python -m snipinator.cli \
--force \
--create \
-o "${PROJ_PATH}/README.md" \
--chmod-ro
--chmod-ro \
--skip-unchanged

LAST_VERSION=$(tomlq -r -e '.["tool"]["mdreftidy-project-metadata"]["last_stable_release"]' pyproject.toml)
python -m mdremotifier.cli \
Expand Down

0 comments on commit 213d02e

Please sign in to comment.