pkgcheck #155
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: pkgcheck | |
| # This will cancel running jobs once a new run is triggered | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref }} | |
| cancel-in-progress: true | |
| on: | |
| # Manually trigger the Action under Actions/pkgcheck | |
| workflow_dispatch: | |
| # Run after other checks | |
| workflow_run: | |
| workflows: ["R-CMD-check", "test-coverage.yaml", "check-html5", "render-readme"] | |
| types: | |
| - completed | |
| jobs: | |
| pkgcheck: | |
| runs-on: ubuntu-latest | |
| env: | |
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
| RUN_JAVA_DOWNLOAD_TESTS: "TRUE" | |
| RUN_JAVA_DOWNLOAD_TESTS_QUIET: "FALSE" | |
| RUN_JAVA_DOWNLOAD_TESTS_QUIET_DOWNLOAD: "TRUE" | |
| permissions: | |
| contents: read | |
| issues: write | |
| pull-requests: write | |
| actions: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Grant safe directory permissions for pkgcheck container | |
| run: | | |
| sudo chown -R root:root . | |
| git config --global --add safe.directory '*' | |
| mkdir -p /home/runner/work/_temp/_github_home | |
| printf "[safe]\n\tdirectory = *\n" > /home/runner/work/_temp/_github_home/.gitconfig | |
| - uses: ropensci-review-tools/pkgcheck-action@main | |
| with: | |
| ref: '' |