forked from andrewthetechie/gha-repo-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (26 loc) · 1.42 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.DEFAULT_GOAL := help
# This help function will automatically generate help/usage text for any make target that is commented with "##".
# Targets with a singe "#" description do not show up in the help text
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-40s\033[0m %s\n", $$1, $$2}'
setup-dev: pyenv-install pyenv-setup install-requirements setup-pre-commit ## Uses pyenv to setup a virtualenv and install requirements
pyenv-install:
pyenv install 3.9.2
pyenv-setup:
pyenv virtualenv 3.9.2 gha-repo-manager
pyenv local gha-repo-manager
install-requirements: ## Pip installs our requirements
pip install -r Docker/builder/rootfs/requirements.txt -r requirements-dev.txt
setup-pre-commit:
pre-commit install
build: ## build a docker image locally
docker build -t gha-repo-manager -f Docker/Dockerfile .
generate-inputs: ## Generate a dict of inputs from actions.yml into repo_manager/utils/__init__.py
./.github/scripts/replace_inputs.sh
install-action-lint-mac: ## Install actionlint (used in pre-commit) on a mac using homebrew
brew install actionlint
install-action-lint: ## Install actionlint (used in pre-commit) using go install
go install github.com/rhysd/actionlint/cmd/actionlint@latest
actionlint: ## run actionlint with our ignores
# https://github.com/rhysd/actionlint/issues/152
actionlint -ignore 'property \".+\" is not defined in object type {}'