You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 096d617
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .github/actions/verify-no-snapshot-versions/README.md
+28-5Lines changed: 28 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@ Any other key has its value checked only when the value is *shaped* like a versi
35
35
36
36
| Input | Description | Required | Default |
37
37
|-------|-------------|----------|---------|
38
+
|`allow-prerelease`| Permit `-M<n>` and `-RC<n>` versions. Set when verifying a milestone or release candidate. `-SNAPSHOT` is rejected either way. | No |`false`|
38
39
|`directory`| Root directory of the project to verify | No |`.`|
39
40
|`exclude-patterns`| Newline-separated list of regular expressions. Any file whose absolute path matches one of these patterns is excluded from version checking. | No | See below |
40
41
@@ -123,11 +124,33 @@ steps:
123
124
124
125
Any version value matching one of these patterns (case-insensitive) is a violation:
125
126
126
-
| Pattern | Example |
127
-
|---------|---------|
128
-
| `-SNAPSHOT` | `4.2.0-SNAPSHOT` |
129
-
| `-RC<N>` | `3.3.0-RC1`, `3.3.0-RC2` |
130
-
| `-M<N>` | `2023.0.0-M1`, `4.2.0-M12` |
127
+
| Pattern | Example | Flagged by default | Flagged with `allow-prerelease` |
Copy file name to clipboardExpand all lines: .github/actions/verify-no-snapshot-versions/action.yml
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,16 @@
1
1
name: 'Verify No Snapshot Versions'
2
-
description: 'Verifies that every version in every Maven and Gradle build file in a Spring Cloud project is a release version (no -SNAPSHOT, -RC*, or -M* versions), wherever it is declared'
2
+
description: 'Verifies that every version in every Maven and Gradle build file in a Spring Cloud project is a release version (no -SNAPSHOT, and no -RC*/-M* unless allow-prerelease is set), wherever it is declared'
3
3
author: 'Spring Cloud Team'
4
4
5
5
inputs:
6
+
allow-prerelease:
7
+
description: >
8
+
Permit -M<n> and -RC<n> versions. Set this when verifying a milestone or release
9
+
candidate: such a build legitimately carries a mixture of milestone,
10
+
release-candidate and GA versions, and the default would reject every one of them.
11
+
-SNAPSHOT is rejected either way.
12
+
required: false
13
+
default: 'false'
6
14
directory:
7
15
description: 'Root directory of the project to verify. Defaults to the current working directory.'
0 commit comments