Skip to content

Commit

Permalink
refactor(Taskfile): uninstall pre-commit before creating index
Browse files Browse the repository at this point in the history
This commit modifies the Taskfile.yaml file by adding the "pre-commit uninstall" command before creating the index. It also adds the "pre-commit install" command after removing the index.yaml file. This ensures that the pre-commit hook is uninstalled and then installed again during the index creation process.
  • Loading branch information
pmoscode committed Jul 7, 2023
1 parent e63543c commit 40e07ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ tasks:
index:
desc: Creates or updates the index file and pushes it to the default github pages branch
cmds:
- pre-commit uninstall
- cr index -o $GITHUB_USERNAME -r $CHART_NAME -t $GITHUB_TOKEN -i . --push
- rm index.yaml
- pre-commit install

publish:
desc: Execute all steps for a Helm Chart deployment on GitHub-Pages (Don't forget to bump proper version)
Expand Down

0 comments on commit 40e07ee

Please sign in to comment.