Elffuss BraidHub

kikocis/continue public

ci: log when tests are re-run
Changeset15bc6182e0846c78a2f28e387f048ff41101d96457febafc07771362b6a5861b
AuthorNate <sestinj@gmail.com> · 2025-08-23 10:33 -07:00
CommitterNate <sestinj@gmail.com> · 2025-08-23 10:33 -07:00
Parents5b5fa6eb4e4a

Browse the files at this changeset

3 files changed

added .github/actions/track-rerun/action.yml +19 −0
@@ -0,0 +1,19 @@
1+name: Track Workflow Rerun
2+description: Track when GitHub Actions workflows are rerun (attempt > 1)
3+
4+runs:
5+ using: composite
6+ steps:
7+ # Eventually we can start logging this to monitor codebase health (e.g. to Slack, PostHog, etc.)
8+ - name: Track workflow rerun
9+ if: github.run_attempt > 1
10+ shell: bash
11+ run: |
12+ echo "🔄 Workflow rerun detected - Attempt #${{ github.run_attempt }}"
13+ echo "📊 Workflow: ${{ github.workflow }}"
14+ echo "🔀 PR: ${{ github.event.pull_request.number || 'N/A' }}"
15+ echo "📝 Commit: ${{ github.sha }}"
16+ echo "👤 Actor: ${{ github.actor }}"
17+ echo "⏰ Timestamp: $(date -u +%Y-%m-%dT%H:%M:%SZ)"
18+ echo ""
19+ echo "::notice title=Workflow Rerun Detected::This is attempt #${{ github.run_attempt }} of workflow '${{ github.workflow }}'"
modified .github/workflows/cli-pr-checks.yml +8 −0
@@ -12,6 +12,14 @@
1212 issues: write
1313
1414 jobs:
15+ track-rerun:
16+ runs-on: ubuntu-latest
17+ if: github.run_attempt > 1
18+ steps:
19+ - uses: actions/checkout@v4
20+ - name: Track workflow rerun
21+ uses: ./.github/actions/track-rerun
22+
1523 lint:
1624 runs-on: ubuntu-latest
1725 steps:
modified .github/workflows/pr-checks.yaml +8 −0
@@ -11,6 +11,14 @@
1111 - main
1212
1313 jobs:
14+ track-rerun:
15+ runs-on: ubuntu-latest
16+ if: github.run_attempt > 1
17+ steps:
18+ - uses: actions/checkout@v5
19+ - name: Track workflow rerun
20+ uses: ./.github/actions/track-rerun
21+
1422 prettier-check:
1523 runs-on: ubuntu-latest
1624 steps: