CI: don't run this workflow twice on a PR

If a maintainer pushes to a PR, the workflow push and pull_request events
both trigger. Limit the workflow to the main branch, explicitly.
This commit is contained in:
Martijn Pieters
2023-05-15 17:19:38 +01:00
parent 915f3dd8f2
commit 4a012c7cae

View File

@@ -1,5 +1,12 @@
name: ci name: ci
on: [ push, pull_request ] on:
push:
branches:
- main
pull_request:
branches:
- main
jobs: jobs:
ci: ci:
strategy: strategy: