Check vendored primarycensored #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
| # Check that vendored primarycensored Stan functions are up to date | |
| # with the latest CRAN version. Opens a PR if they are not. | |
| on: | |
| schedule: | |
| - cron: "0 6 * * 1" # Weekly on Monday at 06:00 UTC | |
| workflow_dispatch: | |
| name: Check vendored primarycensored | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| check-primarycensored: | |
| runs-on: ubuntu-latest | |
| env: | |
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - name: Generate token | |
| id: generate_token | |
| uses: tibdex/github-app-token@v2 | |
| with: | |
| app_id: ${{ secrets.APP_ID }} | |
| private_key: ${{ secrets.APP_PRIVATE_KEY }} | |
| - uses: actions/checkout@v6 | |
| with: | |
| token: ${{ steps.generate_token.outputs.token }} | |
| - uses: r-lib/actions/setup-r@v2 | |
| - uses: r-lib/actions/setup-r-dependencies@v2 | |
| with: | |
| install-pandoc: false | |
| cache: false | |
| packages: | | |
| any::primarycensored | |
| - name: Regenerate vendored Stan functions | |
| run: Rscript inst/dev/vendor-primarycensored.R | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v8 | |
| with: | |
| token: ${{ steps.generate_token.outputs.token }} | |
| commit-message: Update vendored primarycensored Stan functions | |
| title: Update vendored primarycensored Stan functions | |
| body: | | |
| The vendored primarycensored Stan functions are out of date | |
| with the latest CRAN version. This PR updates them. | |
| Please verify the changes before merging. | |
| branch: update-vendored-primarycensored |