Skip to content

Commit 1bdaecd

Browse files
committed
ci: restrict guix build to only run on tagged pushes and labeled PRs
Previously, the Guix Build workflow triggered on all push events (branches and tags), relying solely on the job-level `if` condition to skip non-tag branch pushes. This caused unnecessary workflow runs to appear (as skipped) on every PR push. Restrict the push trigger to tags only, so the workflow is never triggered by regular branch pushes. The existing job-level condition is kept as defense-in-depth. For PRs, the workflow continues to require the `guix-build` label.
1 parent dcfa6ba commit 1bdaecd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/guix-build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
pull_request_target:
1010
types: [labeled]
1111
push:
12+
tags:
13+
- '*'
1214
schedule:
1315
# Run weekly at 3 AM UTC on Sunday on the default branch
1416
- cron: '0 3 * * 0'

0 commit comments

Comments
 (0)