Fetch #16317
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: Fetch | |
on: | |
schedule: | |
# every hour | |
- cron: "0 4 * * *" | |
workflow_dispatch: | |
jobs: | |
fetch: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install Dependencies | |
run: npm ci | |
- name: Fetch | |
run: npm run fetch | |
env: | |
GITHUB_TOKEN: ${{ secrets.PUBLIC_SCOPE_GH_TOKEN }} | |
- name: Set Git Author | |
run: git config --global user.name "github-actions[bot]" | |
- name: Set Git Email | |
run: git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
- name: Commit Changes | |
run: git add _data && git commit -m "Update data" || true | |
- name: Push | |
run: git push origin main |