-
-
Notifications
You must be signed in to change notification settings - Fork 17
39 lines (34 loc) · 1.11 KB
/
super-linter.yml
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
38
39
name: Lint Code Base
on:
push:
branches: ["hyde-gallery"]
pull_request:
branches: ["hyde-gallery"]
jobs:
run-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Lint Code Base
uses: github/super-linter@v4
env:
VALIDATE_ALL_CODEBASE: false
VALIDATE_PYTHON: false
VALIDATE_JSON: true
DEFAULT_BRANCH: "hyde-gallery"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x" # Specify the Python version you need
- name: Run generate_readme.py
run: python generate_readme.py # Run the script from the root directory
- name: Commit changes
run: |
git config --local user.name "GitHub Action"
git config --local user.email "[email protected]"
git add . # Specify the README file or use . for all changes
git commit -m "Update README from GitHub Actions" || echo "No changes to commit"