-
Notifications
You must be signed in to change notification settings - Fork 45
43 lines (35 loc) · 993 Bytes
/
generate-md.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
40
41
42
43
name: Generate Markdown on Merge
on:
merge_group:
push:
branches:
- main
concurrency:
group: ${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
permissions:
packages: write
contents: write
jobs:
generate-md:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
# - name: Install dependencies
# run: pip install --no-cache-dir -r requirements.txt
- name: Run Markdown generation script
run: python scripts/gen-tools-md.py
- name: Commit generated Markdown files
run: |
git config user.name "GitHub Action"
git config user.email "actions@github.com"
git add -A
git commit -m "Update generated Markdown files"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}