Generate Active Permissions #70
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate Active Permissions | |
on: | |
schedule: | |
- cron: "0 0 * * 6" | |
workflow_dispatch: | |
jobs: | |
refresh_active_perms: | |
runs-on: ubuntu-latest | |
env: | |
INFURA_KEY: ${{ secrets.INFURA_KEY }} | |
ALCHEMY_KEY: ${{ secrets.ALCHEMY_KEY }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.9" | |
- name: Update Files | |
id: update | |
run: | | |
pip3 install -r bal_addresses/requirements.txt | |
python3 generate_current_permissions.py | |
python3 gen_addresses.py | |
rm -rf balancer-deployments | |
git add -A | |
- name: pull-request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
commit-message: "Scheduled update from changes to monorepo" | |
title: "Scheduled update from changes to monorepo" | |
branch: "gha-permissions" | |
reviewers: "Tritum-VLK" | |
assignees: "Tritum-VLK" | |
labels: "Automatic" |