Commit d2829f4
committed
chore(workflows): skip deploy when release bot pushes to main
The n3ary release bot opens release/calver-* PRs on every PR merge
to main. The PR auto-merges and lands a version-only commit on main;
the push event then fires with github.actor = n3ary-release-bot[bot].
deploy-production.yml triggers on push: branches: [main] (with
paths-ignore for CHANGELOG.md). It was not filtered to skip the bot,
so it ran on every release bump. The bump commit is a no-op (just
package.json#version), so re-deploying is wasteful.
Add a job-level guard: skip when github.actor ==
"n3ary-release-bot[bot]". Manual workflow_dispatch still works
(actor != bot). The release bot itself never pushes anything other
than a version bump, so this is safe.
Refs: n3ary/standards#221 parent 6d22061 commit d2829f4
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
35 | 42 | | |
36 | 43 | | |
37 | 44 | | |
| |||
0 commit comments