-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (28 loc) · 862 Bytes
/
Copy pathupdate_readme.yaml
File metadata and controls
35 lines (28 loc) · 862 Bytes
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: Update attributes in README.md
on:
push:
branches: [ dev ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies
run: pip install -r requirements.txt
- name: Update readme.md
run: |
export PYTHONPATH=$PWD
echo $PYTHONPATH
python3 .github/scripts/update_readme.py
- name: Check for changes
id: changes
run: |
git config --global user.email "actions@github.com"
git config --global user.name "GitHub Actions"
git diff --quiet || git commit -am "Automatic update of attibutes in README.md"
- name: Push changes
# if: steps.changes.outputs.return-code == 1
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}