File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,11 @@ setup() {
38
38
export INPUT_DISABLE_GLOBBING=false
39
39
export INPUT_INTERNAL_GIT_BINARY=git
40
40
41
+ # Deprecated variables. Will be removed in future versions
42
+ export INPUT_CREATE_BRANCH=false
43
+ export INPUT_SKIP_FETCH=false
44
+ export INPUT_SKIP_CHECKOUT=false
45
+
41
46
# Set GitHub environment variables used by the GitHub Action
42
47
temp_github_output_file=$( mktemp -t github_output_test.XXXXX)
43
48
export GITHUB_OUTPUT=" ${temp_github_output_file} "
@@ -1161,3 +1166,17 @@ END
1161
1166
run git tag
1162
1167
assert_output " "
1163
1168
}
1169
+
1170
+ @test " it shows warning message if any deprecated options are used" {
1171
+ INPUT_SKIP_FETCH=true
1172
+ INPUT_SKIP_CHECKOUT=true
1173
+ INPUT_CREATE_BRANCH=true
1174
+
1175
+ run git_auto_commit
1176
+
1177
+ assert_success
1178
+
1179
+ assert_line " ::warning::skip_fetch has been removed in v6. It does not have any effect anymore."
1180
+ assert_line " ::warning::skip_checkout has been removed in v6. It does not have any effect anymore."
1181
+ assert_line " ::warning::create_branch has been removed in v6. It does not have any effect anymore."
1182
+ }
You can’t perform that action at this time.
0 commit comments