Commit e55d32f
ci(release): allow PSGallery publish to recover when the release already exists
The publish step (and PSGallery existence check) were gated on
'GitHub release does not exist', so a run that created the release but failed to
publish to PSGallery could never recover — re-runs skipped publishing entirely.
Regate (matching PlexAutomationToolkit's existing pattern):
- Check if PSGallery Version Exists: runs whenever not the un-initialized template
(no longer gated on the release check).
- Bootstrap: runs if a release needs creating OR a publish is needed.
- Publish to PSGallery: gated only on the PSGallery check (publish if the version
isn't on the gallery, regardless of whether the GitHub release exists).
- Create GitHub Release: unchanged (still skipped if the release exists).
Flagged by both CodeRabbit and Copilot during the YouTubeMusicPS rollout review.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e3d324f commit e55d32f
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
85 | | - | |
| 87 | + | |
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
| |||
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
147 | | - | |
| 149 | + | |
148 | 150 | | |
149 | 151 | | |
150 | 152 | | |
| |||
0 commit comments