Trigger CI on direct pushes

This commit is contained in:
Simon Alibert 2024-03-06 12:13:23 +01:00
parent 86ec62f98a
commit b9dc3be463
1 changed files with 3 additions and 1 deletions

View File

@ -11,7 +11,9 @@ on:
jobs:
test:
if: contains(github.event.pull_request.labels.*.name, 'CI')
if: |
${{ github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'CI') }} ||
${{ github.event_name == 'push' }}
runs-on: ubuntu-latest
env:
POETRY_VERSION: 1.8.1