Watching for unhealthy accounts #4513
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: liquidate | |
run-name: Watching for unhealthy accounts | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '15 * * * *' | |
jobs: | |
watching: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: build | |
run: forge build | |
- name: run | |
env: | |
RPC_URL_MAINNET: ${{ secrets.RPC_URL_MAINNET }} | |
RPC_URL_OPTIMISM: ${{ secrets.RPC_URL_OPTIMISM }} | |
RPC_URL_ARBITRUM: ${{ secrets.RPC_URL_ARBITRUM }} | |
RPC_URL_BASE: ${{ secrets.RPC_URL_BASE }} | |
RPC_URL_LINEA: ${{ secrets.RPC_URL_LINEA }} | |
RPC_URL_SCROLL: ${{ secrets.RPC_URL_SCROLL }} | |
PRIVATE_KEY_LIQUIDATE: ${{ secrets.PRIVATE_KEY_LIQUIDATE }} | |
LIQUIDATE_SCRIPT_INTERVAL: ${{ vars.LIQUIDATE_SCRIPT_INTERVAL }} | |
run: | | |
./liquidate.sh "$(expr 3600 / $LIQUIDATE_SCRIPT_INTERVAL)" $LIQUIDATE_SCRIPT_INTERVAL |