Changesets · Branches · Tags · Compare
| Changeset | 15bc6182e0846c78a2f28e387f048ff41101d96457febafc07771362b6a5861b |
|---|---|
| Author | Nate <sestinj@gmail.com> · 2025-08-23 10:33 -07:00 |
| Committer | Nate <sestinj@gmail.com> · 2025-08-23 10:33 -07:00 |
| Parents | 5b5fa6eb4e4a |
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 @@ | ||
| 12 | 12 | issues: write |
| 13 | 13 | |
| 14 | 14 | 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 | + | |
| 15 | 23 | lint: |
| 16 | 24 | runs-on: ubuntu-latest |
| 17 | 25 | steps: |
modified .github/workflows/pr-checks.yaml +8 −0
| @@ -11,6 +11,14 @@ | ||
| 11 | 11 | - main |
| 12 | 12 | |
| 13 | 13 | 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 | + | |
| 14 | 22 | prettier-check: |
| 15 | 23 | runs-on: ubuntu-latest |
| 16 | 24 | steps: |