Add _log and _set_github_output functions (#273)

* Add _set_github_output function

* Use _set_github_output in Action

* Add _log function

* Use _log in Action and fix Test Cases

* Update wording in log messages

* Update note about removal of old output syntax

Logic is now encapuslated in a single function. I don’t mind keeping it around until spring / June 2023
This commit is contained in:
Stefan Zweifel
2022-12-22 19:45:17 +01:00
committed by GitHub
parent 925bbcaef3
commit aeb1802648
2 changed files with 39 additions and 46 deletions

View File

@@ -417,7 +417,7 @@ cat_github_output() {
assert_success
assert_line "::debug::git-fetch has not been executed"
assert_line "::debug::git-fetch will not be executed."
}
@test "If SKIP_CHECKOUT is true git-checkout will not be called" {
@@ -430,7 +430,7 @@ cat_github_output() {
assert_success
assert_line "::debug::git-checkout has not been executed"
assert_line "::debug::git-checkout will not be executed."
}
@test "It pushes generated commit and tag to remote and actually updates the commit shas" {
@@ -1090,5 +1090,5 @@ cat_github_output() {
run git_auto_commit
assert_failure;
assert_line "::error ::git-auto-commit could not find git binary. Please make sure git is available."
assert_line "::error::git-auto-commit could not find git binary. Please make sure git is available."
}