File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 - ' **.md'
1010jobs :
1111 pre-commit :
12- runs-on : ubuntu-22.04
12+ runs-on : [self-hosted]
1313 steps :
1414 - name : Checkout code
1515 uses : actions/checkout@v3
1616
17- - name : Set up Python
18- uses : actions/setup-python@v4
19- with :
20- python-version : ' 3.11'
21-
22- - name : Install pre-commit
23- run : pip install pre-commit
24-
25- - name : Install generate
26- run : |
27- sudo apt update
28- sudo apt install curl -y
29- curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
30- sudo apt install nodejs -y
31- git clone https://github.com/bitnami/readme-generator-for-helm
32- cd ./readme-generator-for-helm
33- npm install
34- npm install -g pkg
35- pkg . -o /usr/local/bin/readme-generator
36-
3717 - name : Run pre-commit hooks
3818 run : |
3919 git fetch origin main || git fetch origin master
4020 base_commit=$(git rev-parse --verify origin/main || git rev-parse --verify origin/master || echo "")
41- echo $base_commit
4221 if [ -z "$base_commit" ]; then
4322 files=$(git ls-files '*.yaml' '*.md')
4423 else
4524 files=$(git diff --name-only "$base_commit" -- '*.yaml' '*.md')
4625 fi
47- echo $files
4826 if [ -n "$files" ]; then
4927 echo "$files" | xargs pre-commit run --files
5028 else
You can’t perform that action at this time.
0 commit comments