Update CITATION.cff (#167)
#123
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: render-readme | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref }} | |
| cancel-in-progress: true | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| render-readme: | |
| runs-on: macos-latest | |
| env: | |
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - name: Checkout repos | |
| uses: actions/checkout@v7 | |
| - name: Setup R | |
| uses: r-lib/actions/setup-r@v2 | |
| - name: Setup pandoc | |
| uses: r-lib/actions/setup-pandoc@v2 | |
| - name: Install dependencies | |
| uses: r-lib/actions/setup-r-dependencies@v2 | |
| with: | |
| # allcontributors from GitHub until the pandoc blank-line fix | |
| # (ropensci/allcontributors#65) reaches CRAN; the released version | |
| # reformats the contributors block and churns the README diff | |
| packages: any::rmarkdown, ropensci/allcontributors, local::. | |
| - name: Update contributors | |
| if: github.ref == 'refs/heads/main' | |
| run: allcontributors::add_contributors(format = "text", check_urls = FALSE) | |
| shell: Rscript {0} | |
| - name: Compile the readme | |
| run: | | |
| rmarkdown::render("README.Rmd") | |
| shell: Rscript {0} | |
| - name: Upload README.md as an artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: readme | |
| path: README.md | |
| - name: Create Pull Request | |
| if: github.ref == 'refs/heads/main' | |
| uses: peter-evans/create-pull-request@v8 | |
| with: | |
| commit-message: "Automatic README update" | |
| title: "Update README" | |
| body: "This is an automated pull request to update the README." | |
| branch: "update-readme-${{ github.run_number }}" | |
| labels: "documentation" | |
| add-paths: | | |
| README.Rmd | |
| README.md | |
| token: ${{ secrets.GITHUB_TOKEN }} |