Update config #545
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 config | |
on: | |
schedule: | |
- cron: "0 */12 * * *" | |
workflow_dispatch: | |
jobs: | |
update-availability: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.ref }} | |
- name: Run update-availability script for all datasets | |
run: | | |
echo "Running update-availability script for all datasets" | |
./update-availability.sh "Beacon API Event Stream" | |
./update-availability.sh "Execution Layer P2P" | |
./update-availability.sh "Canonical Beacon" | |
./update-availability.sh "Canonical Execution" | |
./update-availability.sh "Consensus Layer P2P" | |
./update-availability.sh "MEV Relay" | |
- name: Commit changes | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Action" | |
git add -A | |
git commit -m "Update data availability" || echo "No changes to commit" | |
git push | |
- name: Trigger deploy hook | |
run: | | |
curl -X POST "${{ secrets.HOMEPAGE_HOOK_URL }}" |