Commit 078a35e
committed
fix(publish): add check-snapshot/check-tag gates to fix release routing
Inserts two lightweight gate jobs between `report` and the publish/release
jobs to fix incorrect routing:
- `github-snapshot` and `publish-snapshot` were firing on any
workflow_dispatch, including dispatches from a tag ref.
- `publish-release` condition used `||` so it fired on any dispatch with
release_to_maven_central=true even from a branch (where github-release
was skipped, causing publish-release to also skip silently).
The two new gate jobs (`check-snapshot`, `check-tag`) succeed only on the
correct ref type. Downstream jobs gate on `needs.<gate>.result == 'success'`
so they automatically skip when the gate is skipped.1 parent 6cd8fba commit 078a35e
1 file changed
Lines changed: 27 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
620 | 620 | | |
621 | 621 | | |
622 | 622 | | |
623 | | - | |
624 | | - | |
| 623 | + | |
| 624 | + | |
625 | 625 | | |
| 626 | + | |
626 | 627 | | |
627 | 628 | | |
628 | | - | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
629 | 647 | | |
630 | 648 | | |
631 | 649 | | |
| |||
650 | 668 | | |
651 | 669 | | |
652 | 670 | | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
| 671 | + | |
| 672 | + | |
657 | 673 | | |
658 | 674 | | |
659 | 675 | | |
| |||
685 | 701 | | |
686 | 702 | | |
687 | 703 | | |
688 | | - | |
689 | | - | |
| 704 | + | |
| 705 | + | |
690 | 706 | | |
691 | 707 | | |
692 | 708 | | |
| |||
702 | 718 | | |
703 | 719 | | |
704 | 720 | | |
705 | | - | |
706 | | - | |
| 721 | + | |
| 722 | + | |
707 | 723 | | |
708 | 724 | | |
709 | 725 | | |
| |||
0 commit comments