Update Resources #11
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 Resources' | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * 0" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: resources | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- name: Build resources.json | |
env: | |
KEY: ${{ secrets.KEY }} | |
run: | | |
cd sync | |
npm ci | |
npm run build --if-present | |
npm start | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
commit-message: Automated update of resources.json | |
title: Updating resources branch with latest version of resources.json | |
body: This is entirely automated. If something doesn't look right, fix it! | |
branch: update-resources |