You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bc24d0b
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: action.yml
+19-20Lines changed: 19 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -530,28 +530,27 @@ runs:
530
530
suffix: ${{ inputs.report_title_suffix }}
531
531
run: |
532
532
: Retrieve comment
533
-
if ! gh run download -R "$GITHUB_REPOSITORY" "$GITHUB_RUN_ID" -n "check-spelling-comment-$suffix" 2>/dev/null; then
534
-
if ! gh run download -R "$GITHUB_REPOSITORY" "$GITHUB_RUN_ID" -n check-spelling-comment 2>/dev/null; then
535
-
gh_api_out=$(mktemp)
536
-
gh_api_err=$(mktemp)
537
-
if ! gh api "/repos/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID/artifacts?per_page=1" > "$gh_api_out" 2> "$gh_api_err"; then
538
-
if grep -q 'HTTP 403' "$gh_api_err"; then
539
-
act-summary
540
-
(
541
-
echo '# Workflow is missing permissions'
542
-
echo 'Please add `actions: read` to enable check-spelling to retrieve the artifact it needs to post a comment. [more info](https://docs.check-spelling.dev/Workflow-Permissions#actions-read)'
543
-
echo
544
-
echo '#### Technical details'
545
-
echo '```'
546
-
cat "$gh_api_err"
547
-
cat "$gh_api_out"
548
-
echo
549
-
echo '```'
550
-
) >> "$GITHUB_STEP_SUMMARY"
551
-
fi
533
+
"$spellchecker/gh-run-download.sh"
534
+
if [ ! -s artifact.zip ]; then
535
+
gh_api_out=$(mktemp)
536
+
gh_api_err=$(mktemp)
537
+
if ! gh api "/repos/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID/artifacts?per_page=1" > "$gh_api_out" 2> "$gh_api_err"; then
538
+
if grep -q 'HTTP 403' "$gh_api_err"; then
539
+
act-summary
540
+
(
541
+
echo '# Workflow is missing permissions'
542
+
echo 'Please add `actions: read` to enable check-spelling to retrieve the artifact it needs to post a comment. [more info](https://docs.check-spelling.dev/Workflow-Permissions#actions-read)'
0 commit comments