File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ See the default action step definition:
59
59
env :
60
60
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
61
61
with :
62
- github-repository : " { org }/{ repo }" # ${{ github.repository }}
62
+ github-repository : " { org }/{ repo }" # e.g. ${{ github.repository }}
63
63
version-tag : " v0.1.0"
64
64
` ` `
65
65
Original file line number Diff line number Diff line change @@ -91,17 +91,17 @@ def is_valid_increment(self) -> bool:
91
91
if nv .major == latest_filtered_version .major and nv .minor == latest_filtered_version .minor :
92
92
if nv .patch == latest_filtered_version .patch + 1 :
93
93
return True
94
- logger .error (f "New tag { nv } is not one patch higher than the latest tag { latest_filtered_version } ." )
94
+ logger .error ("New tag %s is not one patch higher than the latest tag %s." , nv , latest_filtered_version )
95
95
96
96
# Check if this is a valid minor or major bump
97
97
if nv .major == latest_version .major :
98
98
if nv .minor == latest_version .minor + 1 :
99
99
if nv .patch == 0 :
100
100
return True
101
- logger .error (f "New tag { nv } is not a valid minor bump. Latest version: { latest_version } ." )
101
+ logger .error ("New tag %s is not a valid minor bump. Latest version: %s." , nv , latest_version )
102
102
elif nv .major == latest_version .major + 1 :
103
103
if nv .minor == 0 and nv .patch == 0 :
104
104
return True
105
- logger .error (f "New tag { nv } is not a valid major bump. Latest version: { latest_version } ." )
105
+ logger .error ("New tag %s is not a valid major bump. Latest version: %s." , nv , latest_version )
106
106
107
107
return False
You can’t perform that action at this time.
0 commit comments