Commit b9419bb
committed
Auto merge of #711 - AzureMarker:feature/skip-empty-versions, r=jackh726
Skip crate publishing if there have been no changes
The last few crate releases have not introduced any changes, but the weekly publishing job has still pumped out new versions:

Now, using the [`cargo workspaces changed`](https://github.com/pksunkara/cargo-workspaces#changed) command, new crate versions are only published if there has been a change in one of the crates.
One interesting effect of using this method is that changes to sections of the project such as the book or main readme (which do not affect the crates) do not trigger crate releases. I don't expect that this will be an issue, but it's important to note.
Edit: I've updated the code to skip the empty release check if the job is manually triggered. This should be a sufficient workaround.1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
41 | 49 | | |
42 | 50 | | |
43 | 51 | | |
| |||
0 commit comments