only run CI on the main branch + pull_request

This commit is contained in:
Earl Warren 2023-10-15 18:07:57 +02:00
parent a441c04a13
commit b5b83fd62b
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
2 changed files with 8 additions and 4 deletions

View file

@ -1,7 +1,9 @@
# SPDX-License-Identifier: MIT
on:
pull_request_target:
push:
branches:
- 'main'
pull_request_target:
jobs:
example-docker-compose:

View file

@ -1,7 +1,9 @@
name: checks
on:
- pull_request
- push
push:
branches:
- 'main'
pull_request:
env:
FORGEJO_HOST_PORT: 'forgejo:3000'