Repository navigation
Add actions:read permission to the publish-github workflow so it can … #147
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: Tests | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: "Version number (leave empty for auto)" | |
| required: false | |
| type: string | |
| use_self_hosted_runners: | |
| description: Use self-hosted runners. | |
| required: false | |
| default: true | |
| type: boolean | |
| pull_request: | |
| branches: | |
| - main | |
| - dev | |
| push: | |
| branches: | |
| - main | |
| - dev | |
| paths-ignore: | |
| - "README.md" | |
| - ".github/**" | |
| env: | |
| DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 | |
| DOTNET_NOLOGO: true | |
| jobs: | |
| test: | |
| name: test | |
| uses: ./.github/workflows/run-tests.yml | |
| with: | |
| use_self_hosted_runners: ${{ github.event_name != 'workflow_dispatch' || inputs.use_self_hosted_runners }} |