dump-validators #1
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: dump-validators | |
on: | |
# Triggered monthly or manually in https://github.com/oasisprotocol/oasis-wallet-web/actions/workflows/dump-validators.yml | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 1 * *' | |
permissions: # Limit secrets.GITHUB_TOKEN permissions | |
contents: write | |
pull-requests: write | |
jobs: | |
dump-validators: | |
if: github.repository == 'oasisprotocol/oasis-wallet-web' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: bash ./.github/dump_validators.sh | |
- name: Create Pull Request with updated dumped validators | |
# https://github.com/peter-evans/create-pull-request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }} | |
commit-message: 'Update dumped validators' | |
title: 'Update dumped validators' | |
body: | | |
Created by https://github.com/oasisprotocol/oasis-wallet-web/blob/master/.github/workflows/dump-validators.yml | |
If CI actions and checks don't run in this PR: close it and reopen. | |
https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs | |
labels: bot |