-
Notifications
You must be signed in to change notification settings - Fork 9
39 lines (34 loc) · 1.05 KB
/
updateReadmeButtons.yml
File metadata and controls
39 lines (34 loc) · 1.05 KB
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:
project_card:
types: [created, deleted, moved]
project:
types: [created, deleted]
project_column:
types: [created, deleted, updated]
jobs:
update-images:
name: Update images
runs-on: ubuntu-latest
env:
working-directory: .github/scripts/updateReadmeButtons
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
cache: 'pip'
- name: Decrypt secret
working-directory: ${{env.working-directory}}
env:
SECRET_GCLOUD: ${{ secrets.SECRET_GCLOUD }}
run: ./decrypt_secret.sh
- name: Setup python env
working-directory: ${{env.working-directory}}
run: pip install -r requirements.txt
- name: Update gcloud images
working-directory: ${{env.working-directory}}
env:
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python updateReadmeButtons.py