-
Notifications
You must be signed in to change notification settings - Fork 21
39 lines (32 loc) · 965 Bytes
/
update_readme.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: Update README
on:
discussion:
types: [created, edited, labeled, unlabeled]
discussion_comment:
types: [created, edited]
jobs:
update-readme:
runs-on: ubuntu-latest
permissions:
discussions: read
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set Up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Authenticate with GCP (Service Account Key)
env:
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}
run: |
echo "$GCP_SA_KEY" > /tmp/gcp-key.json
- name: Install Dependencies
run: |
pip install -r .github/scripts/update_readme/requirements.txt
- name: Update README images
env:
GITHUB_TOKEN: ${{ github.token }}
GOOGLE_APPLICATION_CREDENTIALS: "/tmp/gcp-key.json"
run: |
python .github/scripts/update_readme/update_readme.py