Scheduled workflows run on contributor forks without repository guards #11835
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| tags: | |
| - "v*.*.*" | |
| pull_request: | |
| merge_group: | |
| issue_comment: | |
| types: | |
| - created | |
| workflow_dispatch: | |
| env: | |
| R_LIBS_USER: /usr/local/lib/R/site-library | |
| LC_ALL: en_US.UTF-8 | |
| NCPUS: 2 | |
| PGHOST: postgres | |
| CI: true | |
| jobs: | |
| test: | |
| if: github.event_name != 'issue_comment' || startsWith(github.event.comment.body, '/build') | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| R: | |
| - "4.4" | |
| - "4.2" | |
| uses: ./.github/workflows/test.yml | |
| with: | |
| R-version: ${{ matrix.R }} | |
| secrets: inherit | |
| check: | |
| if: github.event_name != 'issue_comment' || startsWith(github.event.comment.body, '/build') | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| package: [check_base, check_modules, check_models] | |
| R: | |
| - "4.4" | |
| - "4.2" | |
| uses: ./.github/workflows/check.yml | |
| with: | |
| R-version: ${{ matrix.R }} | |
| make-grouping: ${{ matrix.package }} | |
| secrets: inherit | |
| sipnet: | |
| if: github.event_name != 'issue_comment' || startsWith(github.event.comment.body, '/build') | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| R: | |
| - "4.4" | |
| - "4.2" | |
| uses: ./.github/workflows/sipnet.yml | |
| with: | |
| R-version: ${{ matrix.R }} | |
| secrets: inherit |