Commit a2da413
committed
CI: use fetch-depth:0 for release job
We use the `git describe` command to prevent release-notes
commits to create nuget prereleases for commits that
have already been tagged as a "non-pre" release; see:
fa788db
However, this stopped working since someone upgraded the
checkout action to v4:
a2b2d94
What must be happening is that this new version of this
action now uses a depth of 1 by default, to save bandwidth,
and then the command `git describe` fails with this error:
```
fatal: No names found, cannot describe anything.
```
There's a good StackOverflow entry about this issue, and
someone recommends `fetch-depth: 0` there to fix it:
https://stackoverflow.com/questions/4916492/git-describe-fails-with-fatal-no-names-found-cannot-describe-anything#comment118391143_459931851 parent ee95fc3 commit a2da413
2 files changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
46 | 51 | | |
47 | 52 | | |
48 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| 227 | + | |
227 | 228 | | |
228 | 229 | | |
229 | 230 | | |
| |||
0 commit comments