chore: workflows now largely only run on pull requests or merge queues

This commit is contained in:
Alex Zenla
2024-04-04 22:57:57 -07:00
parent 8b2befb3bf
commit 618d7a1584
6 changed files with 29 additions and 18 deletions

View File

@ -1,5 +1,11 @@
name: check name: check
on: [push, pull_request, merge_group] on:
pull_request:
branches:
- main
merge_group:
branches:
- main
jobs: jobs:
fmt: fmt:
name: fmt name: fmt

View File

@ -1,5 +1,11 @@
name: client name: client
on: [push, pull_request, merge_group] on:
pull_request:
branches:
- main
merge_group:
branches:
- main
jobs: jobs:
build: build:
strategy: strategy:

View File

@ -1,15 +1,14 @@
name: kernel name: kernel
on: on:
push:
paths:
- "kernel/**"
- "hack/ci/**"
pull_request: pull_request:
branches:
- main
paths: paths:
- "kernel/**" - "kernel/**"
- "hack/ci/**" - "hack/ci/**"
merge_group: merge_group:
branches:
- main
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -1,16 +1,15 @@
name: os name: os
on: on:
push:
paths:
- "os/**"
- "hack/os/**"
- "hack/ci/**"
pull_request: pull_request:
branches:
- main
paths: paths:
- "os/**" - "os/**"
- "hack/os/**" - "hack/os/**"
- "hack/ci/**" - "hack/ci/**"
merge_group: merge_group:
branches:
- main
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -1,18 +1,13 @@
name: release-plz name: release-plz
permissions: permissions:
pull-requests: write pull-requests: write
contents: write contents: write
on: on:
push: push:
branches: branches:
- main - main
concurrency: concurrency:
group: "${{ github.workflow }}" group: "${{ github.workflow }}"
cancel-in-progress: true
jobs: jobs:
release-plz: release-plz:
name: release-plz name: release-plz

View File

@ -1,5 +1,11 @@
name: server name: server
on: [push, pull_request, merge_group] on:
pull_request:
branches:
- main
merge_group:
branches:
- main
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest