Skip to content

Commit

Permalink
fix(gha): add created_at
Browse files Browse the repository at this point in the history
  • Loading branch information
David Garrett authored and David Garrett committed Jul 2, 2024
1 parent 95a6012 commit 37cefa9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ Response=$(
--url "$SERVER_URL/api-pub/v1/axe-watcher/gh/$COMMIT_SHA"
)

LastRunViolationCount=$(echo "$Response" | jq .last_run_violation_count)
LastRunCreatedAt=$(echo "$Response" | jq -r .last_run_created_at)
LastRunViolationCount=$(echo "$Response" | jq -r .last_run_violation_count)
LastRunPageStateCount=$(echo "$Response" | jq -r .last_run_page_state_count)
LastRunNewViolationCount=$(echo "$Response" | jq -r .last_run_new_violation_count)
LastRunResolvedViolationCount=$(echo "$Response" | jq -r .last_run_resolved_violation_count)
Expand All @@ -40,6 +41,7 @@ DifferenceInPageStateCount=$(echo "$Response" | jq -r .difference_in_page_states
if [ -n "${GITHUB_OUTPUT+x}" ]; then
echo "project=$ProjectName" >>"$GITHUB_OUTPUT"
echo "axe_url=$SERVER_URL$AxeURL" >>"$GITHUB_OUTPUT"
echo "created_at=$LastRunCreatedAt" >>"$GITHUB_OUTPUT"
echo "issue_count=$LastRunViolationCount" >>"$GITHUB_OUTPUT"
echo "new_issues=$LastRunNewViolationCount" >> "$GITHUB_OUTPUT"
echo "resolved_issues=$LastRunResolvedViolationCount" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit 37cefa9

Please sign in to comment.