ci: restrict workflows to main branch
This commit is contained in:
@@ -6,12 +6,12 @@ name: ci
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main, "ci/**"]
|
branches: [main]
|
||||||
pull_request:
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
if: gitea.ref == 'refs/heads/main'
|
||||||
runs-on: ubuntu24.04-x64-lean4.35
|
runs-on: ubuntu24.04-x64-lean4.35
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
Reference in New Issue
Block a user