Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Build Pull Request

on:
pull_request:
merge_group:
types: [checks_requested]

jobs:
build:
name: Build Pull Request
uses: ./.github/workflows/build.yml
12 changes: 12 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Build Release

on:
push:
tags:
- '**'
workflow_dispatch:

jobs:
build:
name: Build Release
uses: ./.github/workflows/build.yml
17 changes: 17 additions & 0 deletions .github/workflows/build-snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Build Snapshot

on:
push:
branches:
- '**'
# don't run on dependabot branches. Dependabot will create pull requests, which will then be run instead
- '!dependabot/**'
workflow_dispatch:
schedule:
# build it monthly: At 05:00 on day-of-month 1.
- cron: '0 5 1 * *'

jobs:
build:
name: Build Snapshot
uses: ./.github/workflows/build.yml
14 changes: 1 addition & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
name: Build
on:
pull_request:
merge_group:
push:
branches:
- '**'
# don't run on dependabot branches. Dependabot will create pull requests, which will then be run instead
- '!dependabot/**'
tags:
- '**'
workflow_dispatch:
schedule:
# build it monthly: At 05:00 on day-of-month 1.
- cron: '0 5 1 * *'
workflow_call:

# if another commit is added to the same branch or PR (same github.ref),
# then cancel already running jobs and start a new build.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish Release

on:
workflow_run:
workflows: [Build]
workflows: [Build Release]
types:
- completed
branches:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish Snapshot

on:
workflow_run:
workflows: [Build]
workflows: [Build Snapshot]
types:
- completed
branches:
Expand Down