Add Turing to payouts #83
Workflow file for this run
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: Make astar payouts | |
on: | |
pull_request: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * MON" | |
env: | |
PAYOUTS_ACCOUNT_MNEMONIC: ${{ secrets.PAYOUTS_ACCOUNT_MNEMONIC }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: yarn install | |
- name: Run app | |
run: yarn start:astar | |
telegram-notification: | |
needs: [build] | |
runs-on: ubuntu-latest | |
if: failure() | |
steps: | |
- name: Notify Telegram channel | |
uses: appleboy/telegram-action@master | |
with: | |
to: ${{ secrets.TELEGRAM_TO }} | |
token: ${{ secrets.TELEGRAM_TOKEN }} | |
format: markdown | |
message: | | |
💸 Astar payout failed, see logs for details: | |
Github run: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} |