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() {
3838 export INPUT_DISABLE_GLOBBING=false
3939 export INPUT_INTERNAL_GIT_BINARY=git
4040
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+
4146 # Set GitHub environment variables used by the GitHub Action
4247 temp_github_output_file=$( mktemp -t github_output_test.XXXXX)
4348 export GITHUB_OUTPUT=" ${temp_github_output_file} "
@@ -1161,3 +1166,17 @@ END
11611166 run git tag
11621167 assert_output " "
11631168}
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