Update Saved Pools Auto #228
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 Saved Pools Auto | |
on: | |
schedule: | |
- cron: '0 0 * * *' # Run daily | |
workflow_dispatch: | |
permissions: write-all | |
jobs: | |
update_saved_pools: | |
name: Update Saved Pools Auto | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
submodules: true | |
- name: Git Sumbodule Update | |
run: | | |
git submodule update --init --recursive | |
git submodule update --recursive --remote | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 19.6.0 | |
- name: Run code to Query Pools | |
working-directory: ./.github/workflows/utility | |
run: node queryPools.mjs | |
- name: Add Commit Push | |
run: | | |
git config user.email "actions@example.com" | |
git config user.name "GitHub Actions" | |
# Add, commit, and push changes | |
git add . | |
git commit -m "[AUTO] Query and Save Pools" | |
git push origin main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |