Skip to content

Commit

Permalink
update yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
snkrheadz committed Jun 21, 2024
1 parent 972f433 commit f73ed48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ jobs:
exit 1
fi
- name: Display gocyclo report
run: |
echo ${{ steps.gocyclo_analysis.outputs.report }}
- name: Create a comment with the results
uses: marocchino/sticky-pull-request-comment@v2
with:
Expand Down
10 changes: 3 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ inputs:
outputs:
report:
description: "gocyclo Report"
value: ${{ steps.gocyclo.outputs.report }}

runs:
using: 'composite'
Expand Down Expand Up @@ -124,9 +123,8 @@ runs:
fi
# Create a report
REPORT=""
{
echo "report<<EOF"
echo "## gocyclo Report"
if [ -n "$over_40" ]; then
echo "### 💣 Results with cyclomatic complexity over 40"
Expand Down Expand Up @@ -172,8 +170,6 @@ runs:
else
echo "✅ No errors found during gocyclo analysis."
fi
} > REPORT
echo "EOF"
} >> "$GITHUB_OUTPUT"
echo "display value test"
echo ${{ steps.gocyclo_analysis.outputs.report }}
echo "report=$REPORT" >> "$GITHUB_OUTPUT"

0 comments on commit f73ed48

Please sign in to comment.