Get author data #44
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: Get author data | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: | |
| - main | |
| schedule: | |
| - cron: '0 10 * * SAT' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libcurl4-openssl-dev --fix-missing | |
| - uses: r-lib/actions/setup-r@v2 | |
| - uses: r-lib/actions/setup-renv@v2 | |
| - name: Get publications | |
| run: Rscript scripts/get_pubs.R | |
| - name: Commit results | |
| run: | | |
| git config --local user.email "[email protected]" | |
| git config --local user.name "GitHub Actions" | |
| git commit README.md README-files/ \ | |
| -m 'Re-build README.Rmd' || echo "No changes to commit" | |
| git push origin || echo "No changes to commit" |