diff --git a/.github/workflows/auto-rerun.yaml b/.github/workflows/auto-rerun.yaml index 33b8ff899a1..18859444cff 100644 --- a/.github/workflows/auto-rerun.yaml +++ b/.github/workflows/auto-rerun.yaml @@ -25,7 +25,7 @@ jobs: bot=app/aquaproj-aqua-registry - info "searching pull requests" >&2 + info "searching pull requests" shas=$(gh -R "$GITHUB_REPOSITORY" pr list \ -A "$bot" \ -S "created:>=$d -label:stop-rerun" \ @@ -33,14 +33,15 @@ jobs: -q '.[].headRefOid') for sha in $shas; do - echo "searching workflow runs sha=$sha" >&2 + info "searching workflow runs sha=$sha" runids=$(gh -R "$GITHUB_REPOSITORY" run list \ -c "$sha" \ -s failure \ --json databaseId \ -q '.[].databaseId') for runid in $runids; do - echo "rerunning a workflow run runid=$runid" >&2 + echo "[Rerunning a workflow run]($GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$runid)" >> "$GITHUB_STEP_SUMMARY" + echo "::notice:: rerunning a workflow run: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$runid" >&2 gh -R "$GITHUB_REPOSITORY" run rerun "$runid" --failed done done