Skip to content

snapshot update avail #38247

snapshot update avail

snapshot update avail #38247

name: Update Governance Info

Check failure on line 1 in .github/workflows/update_governance_info.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/update_governance_info.yaml

Invalid workflow file

`schedule` accepts a list of one or more maps with the `cron` key set
on:
schedule:
# - cron: '*/15 * * * *'
workflow_dispatch:
jobs:
update-info:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Run update_governance_info.sh script
run: |
chmod +x ./update_governance_info.sh
./update_governance_info.sh
continue-on-error: true
- name: Commit and push if there are changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add -A
git diff --quiet && git diff --staged --quiet || git commit -m "Update governance info"
git push