on schedule #31
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: on-schedule | |
run-name: on schedule | |
on: | |
schedule: | |
# weekly | |
- cron: "0 0 * * 1" | |
# run if user manually requests it | |
workflow_dispatch: | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
update-citations: | |
# only run on user instance of template, not template itself | |
if: github.repository != 'greenelab/lab-website-template' | |
uses: ./.github/workflows/update-citations.yaml | |
with: | |
open-pr: true | |
build-preview: | |
needs: update-citations | |
if: needs.update-citations.outputs.changed == 'true' | |
uses: ./.github/workflows/build-preview.yaml |