-
Notifications
You must be signed in to change notification settings - Fork 29
49 lines (40 loc) · 1.22 KB
/
update_operators.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
44
45
46
47
48
49
name: Update operators
on:
pull_request:
types: [closed]
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
update-operators-feegrant-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository and Switch to Main
uses: actions/checkout@v2
with:
ref: main
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install requests python-dotenv
- name: Update Operators
run: python ./scripts/update_operators.py
- name: Update Feegrant Data
run: python ./scripts/update_feegrant_data.py
- name: Update Operators Table in README
run: python ./scripts/update_operators_in_readme.py
- name: Commit and Push Changes
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git add -A
git commit -m "Sync Operators file" || echo "No changes to commit"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}