-
Notifications
You must be signed in to change notification settings - Fork 29
37 lines (31 loc) · 1.01 KB
/
run_auth_gen.yaml
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
name: Generate new Authorizer Payloads
on:
pull_request:
types: [ labeled, synchronize ]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
gen_auth:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Do Work
if: ${{ github.event.label.name == 'Generate Authorizer' }}
env:
WEB3_INFURA_PROJECT_ID: ${{ secrets.WEB3_INFURA_PROJECT_ID }}
run: |
pwd
pip3 install -r action-scripts/requirements-actions.txt
python3 action-scripts/gen_add_permissions_payload.py
- name: Commit and push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Generate permissions add payload and tables
commit_user_name: GitHub Actions
commit_user_email: github-actions[bot]@users.noreply.github.com
commit_author: Github Actions <[email protected]>