ci: Fix triggers (#882)

Currently on a branch a workflow got triggered 2x one time on push and one time as its a PR
Now it only gets triggered on PR and on push onto main

Reviewed-on: https://gitea.com/gitea/runner/pulls/882
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Nicolas <bircni@icloud.com>
Co-committed-by: Nicolas <bircni@icloud.com>
This commit is contained in:
Nicolas
2026-05-01 16:37:37 +00:00
committed by Lunny Xiao
parent 68d9fc45c9
commit c45a4e6d32

View File

@@ -1,7 +1,9 @@
name: checks name: checks
on: on:
- push push:
- pull_request branches:
- main
pull_request:
jobs: jobs:
lint: lint:
@@ -17,4 +19,4 @@ jobs:
- name: build - name: build
run: make build run: make build
- name: test - name: test
run: make test run: make test