Update resource page #219
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 resource page | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 8 * * *' | |
jobs: | |
run-r-script: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
# This helps override the branch protection later | |
token: ${{ secrets.SUDO_GITHUB_TOKEN }} | |
- name: Collect resource data | |
run: node _scripts/resource-retrieval-graphql Resources | |
- uses: quarto-dev/quarto-actions/setup@v2 | |
with: | |
version: pre-release | |
- name: Re-render resource page | |
run: quarto render resources.qmd | |
- uses: EndBug/add-and-commit@v9 | |
with: | |
author_name: epiverse-trace-bot | |
author_email: [email protected] | |
message: "Update `./resources/`" | |
add: './resources/' |