Added explanation on how to acknowledge a person on the package `DESC… #40
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
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples | |
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | |
on: | |
pull_request: | |
branches: [main, master] | |
paths: | |
- '**.qmd' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint-changed-quarto: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: npm install markdownlint-cli | |
- name: Get changed quarto files | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
id: changed-qmd | |
run: echo "CHANGED=$(gh pr diff ${{ github.event.pull_request.number }} --name-only | grep '\.qmd$' | tr '\n' ' ')" >> $GITHUB_OUTPUT | |
- run: npx markdownlint-cli ${{ steps.changed-qmd.outputs.CHANGED }} --dot --disable line_length first-line-h1 link-image-reference-definitions |