chore: link workaround comment to upstream quarto-dev/quarto-cli#14627 #7
This file contains hidden or 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: Check Bibliography DOIs | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| check-dois: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up R | |
| uses: r-lib/actions/setup-r@v2 | |
| with: | |
| use-public-rspm: true | |
| - uses: r-lib/actions/setup-r-dependencies@HEAD | |
| with: | |
| install-quarto: false | |
| extra-packages: | | |
| any::bib2df | |
| any::httr | |
| any::jsonlite | |
| any::stringr | |
| - name: Find bibliography files | |
| id: find-bibs | |
| run: | | |
| BIB_FILES=$(find . -name "*.bib" -not -path "./.git/*" | tr '\n' ' ') | |
| echo "Found bibliography files: $BIB_FILES" | |
| echo "bib_files=$BIB_FILES" >> $GITHUB_OUTPUT | |
| - name: Check bibliography DOIs | |
| if: steps.find-bibs.outputs.bib_files != '' | |
| run: | | |
| Rscript .github/scripts/check-bibliography-dois.R ${BIB_FILES} | |
| env: | |
| BIB_FILES: ${{ steps.find-bibs.outputs.bib_files }} | |
| - name: Summary | |
| if: success() | |
| run: | | |
| echo "✓ All bibliography entries have valid DOIs" |