Commit 54867ec
Pin release.yml checkout ref to refs/tags/<tag_name> on workflow_dispatch (#156)
When workflow_dispatch was invoked with a branch name (e.g. "main"),
actions/checkout would silently resolve it as a branch ref and later
steps that assume HEAD is a release tag (git describe --tags
--exact-match HEAD, gh release create --verify-tag, etc.) would fail
with confusing errors. Resolve inputs.tag_name via format('refs/tags/{0}',
inputs.tag_name) in both the release and nuget-publish jobs so a branch
name now fails the checkout step itself instead of reaching the
tag-assumed downstream logic.
https://claude.ai/code/session_01EynRk1KiNDypBTkzJgwfVT
Co-authored-by: Claude <noreply@anthropic.com>3 files changed
Lines changed: 32 additions & 2 deletions
File tree
- .github/workflows
- FolderDiffIL4DotNet.Tests/Architecture
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
| |||
149 | 155 | | |
150 | 156 | | |
151 | 157 | | |
152 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
153 | 161 | | |
154 | 162 | | |
155 | 163 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
| |||
1440 | 1444 | | |
1441 | 1445 | | |
1442 | 1446 | | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
1443 | 1451 | | |
1444 | 1452 | | |
1445 | 1453 | | |
| |||
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
94 | 108 | | |
95 | 109 | | |
96 | 110 | | |
| |||
0 commit comments