Cached content update #4099
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
# Get milestones with issues + library stars from Github API and commit them as files | |
name: Cached content update | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
get-stars-and-milestones: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: get milestones and stars | |
env: | |
GH_API_KEY: ${{ secrets.GH_API_KEY }} | |
run: node src/js/scheduled.mjs scheduled | |
- name: deploy to gh-pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
target-folder: livedata | |
folder: livedata-temp # The folder the action should deploy. | |
commit-message: scheduled milestones and stars update |