Update Pluggable Action Evaluator #64
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: Update Pluggable Action Evaluator | |
on: | |
workflow_dispatch: | |
inputs: | |
network_type: | |
required: true | |
default: 'odin' | |
type: choice | |
options: | |
- odin | |
- heimdall | |
- thor | |
description: 'Choose the mainnet network to update the appsettings.json' | |
previous_version_block_index: | |
required: true | |
description: 'Insert the ending tip index of the previous version (e.g. 1115268)' | |
previous_version_lib9c_commit: | |
required: true | |
description: 'Insert the lib9c commit of the previous version (e.g. ff2c8ae6cfd030ffd20020e1a5bbc4e0caadfe97)' | |
jobs: | |
update-paev: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2.2.2 | |
with: | |
python-version: 3.10.13 | |
- run: | | |
python -m pip install -r requirements.txt | |
flit install | |
name: install dependencies | |
working-directory: ./scripts | |
- name: Update Pluggable Action Evaluator | |
run: | | |
python cli.py update-paev ${{ github.event.inputs.network_type }} ${{ github.event.inputs.previous_version_block_index }} ${{ github.event.inputs.previous_version_lib9c_commit }} | |
working-directory: ./scripts | |
env: | |
GITHUB_TOKEN: ${{ secrets.P_GITHUB_TOKEN }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |