Skip to content

Commit

Permalink
Merge pull request #18 from erzz/17-remove-set-output-command
Browse files Browse the repository at this point in the history
fix: remove deprecated method of setting outputs
  • Loading branch information
erzz authored Mar 6, 2023
2 parents 3c12f11 + d8ffba7 commit 6717132
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ runs:
echo "#### CONFIG ####"
if [ -f .codeclimate.yml ] || cp "$CC_CONF" .codeclimate.yml; then
echo "Found codeclimate config, using that"
echo "Using the repository code climate configuration"
else
echo "::warning::No configuration found, using Code Climate's default configuration"
fi
Expand All @@ -96,12 +96,12 @@ runs:
TOTAL_INFO=$(jq 'map(select(.severity == "info")) | length' codeclimate-report.json)
# Set outputs
echo "::set-output name=total::$TOTAL_ISSUES"
echo "::set-output name=info::$TOTAL_INFO"
echo "::set-output name=minor::$TOTAL_MINOR"
echo "::set-output name=major::$TOTAL_MAJOR"
echo "::set-output name=critical::$TOTAL_CRITICAL"
echo "::set-output name=blocker::$TOTAL_BLOCKER"
echo "total=$TOTAL_ISSUES" >> $GITHUB_OUTPUT
echo "info=$TOTAL_INFO" >> $GITHUB_OUTPUT
echo "minor=$TOTAL_MINOR" >> $GITHUB_OUTPUT
echo "major=$TOTAL_MAJOR" >> $GITHUB_OUTPUT
echo "critical=$TOTAL_CRITICAL" >> $GITHUB_OUTPUT
echo "blocker=$TOTAL_BLOCKER" >> $GITHUB_OUTPUT
# Second run purely to get the readable HTML report. The second run is much faster than the first
# as it does not need to redownload the images already pulled by the first run
Expand All @@ -118,7 +118,7 @@ runs:
echo "#### CONFIG ####"
if [ -f .codeclimate.yml ] || cp "$CC_CONF" .codeclimate.yml; then
echo "Found codeclimate.yml at project root"
echo "Using the repository code climate configuration"
else
echo "::warning::No configuration found, using Code Climate's default configuration"
fi
Expand Down

0 comments on commit 6717132

Please sign in to comment.