diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 1515768..dbddc9a 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -8,6 +8,6 @@ updates: assignees: - "Cyb3r-Jak3" commit-message: - prefix: "Action Update" + prefix: "dep: actions" reviewers: - "Cyb3r-Jak3" \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 9015e0b..13bf86c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Changelog +## [v7.2.0] - 2022-10-23 + +### Changes + +* Switch to using set output method. [#36](https://github.com/Cyb3r-Jak3/html5validator-action/issues/36) + ## [v7.1.1] - 2022-04-17 ### Adds diff --git a/entrypoint.sh b/entrypoint.sh index 387f823..bb8a297 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -14,14 +14,14 @@ function main() { git config --global --add safe.directory /github/workspace if ! uses "${INPUT_ROOT}" && ! uses "${INPUT_CONFIG}"; then + echo "result=no config file or root path given" >> $GITHUB_OUTPUT echo ::error::"Need either root or config file" - echo ::set-output name=result::"no config file or root path given" exit 1 fi echo "Running Validator" if ! git -C . rev-parse 2>/dev/null && ! usesBoolean "${INPUT_SKIP_GIT_CHECK}"; then - echo ::set-output name=result::"There is no git respository detected" + echo "result=There is no git respository detected" >> $GITHUB_OUTPUT echo ::error::"There is no git respository detected" exit 1 fi @@ -45,7 +45,7 @@ function main() { result=${PIPESTATUS[0]} else if [ "${INPUT_ROOT}" == "" ]; then - echo ::set-output name=result::"There is no root given" + echo "result=There is no root given" >> $GITHUB_OUTPUT echo ::error::"There is no root given" exit 1 fi @@ -57,7 +57,7 @@ function main() { echo "$result" fi - echo ::set-output name=result::$result; + echo "result=$result" >> $GITHUB_OUTPUT exit "$result" }