Skip to content

Commit

Permalink
Switch to new method of setting result (#37)
Browse files Browse the repository at this point in the history
* Switch to new method of setting result

* Update changelog

* Fix depenabot config
  • Loading branch information
Cyb3r-Jak3 authored Oct 23, 2022
1 parent de72a9e commit 41633d4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ updates:
assignees:
- "Cyb3r-Jak3"
commit-message:
prefix: "Action Update"
prefix: "dep: actions"
reviewers:
- "Cyb3r-Jak3"
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<!-- markdownlint-disable MD024 -->
# 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
Expand Down
8 changes: 4 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -57,7 +57,7 @@ function main() {
echo "$result"
fi

echo ::set-output name=result::$result;
echo "result=$result" >> $GITHUB_OUTPUT
exit "$result"
}

Expand Down

0 comments on commit 41633d4

Please sign in to comment.