-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (33 loc) · 1.01 KB
/
update_completion.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
name: Deploy Site on fschatbot.github.io
on:
push:
branch: [master]
paths:
- "20*/**"
jobs:
update-completion:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: "3.10.x"
- name: Create local changes
run: |
pip install -r requirements.txt
python generate_completion.py
- name: Setup Git
run: |
git init
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add Completed.md -f
git commit -m "Updated The Completion Chart"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.SECRET_TOKEN }}
branch: ${{ github.ref }}