Fetch #15550
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 * * * *" | |
workflow_dispatch: | |
jobs: | |
fetch: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- 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 |