Skip to content

Update Resources

Update Resources #12

Workflow file for this run

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