Skip to content

Checking for updates to GitHub data #262

Checking for updates to GitHub data

Checking for updates to GitHub data #262

name: update-github-data
run-name: Checking for updates to GitHub data
on:
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: "0 5 * * *"
jobs:
update_github_data:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16"
- run: npm install -g yarn
- run: yarn install
- run: yarn run build
working-directory: ./plugins/github-downloader
- run: |
touch .env
echo GITHUB_TOKEN=${{ secrets.AUTHORIZED_GITHUB_TOKEN }} >> .env
- run: yarn run update-data
working-directory: ./docusaurus
- uses: peter-evans/create-pull-request@v5
with:
commit-message: Update generated GitHub data
title: "[🤖] Update generated GitHub data"
body: |
Your GitHub data was updated!
- Auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request
add-paths: |
docusaurus/src/_generated_data/*