ci: skip the development image for release commits
CI / CLI (pull_request) Successful in 16s
CI / Server (pull_request) Successful in 26s
CI / Docker image (pull_request) Successful in 13s
CI / CLI (linux-arm64, static) (pull_request) Successful in 52s
CI / CLI (windows) (pull_request) Successful in 1m15s
CI / CLI (linux-x86-64, static) (pull_request) Successful in 3m43s

The guard matched a 'Release ' prefix that no commit uses any more, so every
release rebuilt the development image. Match the (release) scope, which covers
the release commit and its merge commit.
This commit is contained in:
fristy committed 2026-11-17 16:58:05 +03:00
1 parent 67c3f3b484
commit 936715f993
2 files changed
+4 -1

No files matched your search

+2 -1
View File
@@ -19,7 +19,8 @@ jobs:
permissions: permissions:
contents: read contents: read
packages: write packages: write
if: "!startsWith(github.event.head_commit.message, 'Release ')" # Releases reach main as a merge commit of the chore(release) branch, so match the scope.
if: "!contains(github.event.head_commit.message, '(release)')"
steps: steps:
- uses: actions/checkout@v7 - uses: actions/checkout@v7
+2
View File
@@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning 2.0.0](https://semver.org/spec/
checks the x86-64 build in a job of its own, so the cross-compile no longer rebuilds from scratch checks the x86-64 build in a job of its own, so the cross-compile no longer rebuilds from scratch
on every run. The Windows check stops uploading `cli/target` to the cache, which cost more time on every run. The Windows check stops uploading `cli/target` to the cache, which cost more time
than the check itself. than the check itself.
- The development image is skipped for releases again: the guard looked for a `Release ` prefix,
while releases reach `main` as `chore(release): X.Y.Z` commits and their merge commits.
### Fixed ### Fixed