Skip to content

Commit

Permalink
PRE-COMMIT
Browse files Browse the repository at this point in the history
  • Loading branch information
kayman-mk committed Jan 9, 2025
1 parent 9c4f7fd commit db21a97
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions update_workflows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ repository_path=$(pwd)
branch_name="update-workflows-$(date +%s)"

function ensure_prerequisites_or_exit() {
if ! command -v pre-commit &> /dev/null; then
echo "pre-commit is not installed. https://github.com/pre-commit/pre-commit"
exit 1
fi

if ! command -v yq &> /dev/null; then
echo "yq is not installed. https://github.com/mikefarah/yq"
exit 1
Expand Down Expand Up @@ -350,6 +355,8 @@ do
done
done

pre-commit install -c .config/.pre-commit-config.yaml

create_commit_and_pr .

rm -rf "$latest_template_path"

0 comments on commit db21a97

Please sign in to comment.