Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to new method of setting result #37

Merged
merged 3 commits into from
Oct 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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