Elffuss BraidHub

kikocis/continue public

main · 845 BRawPermalink
1name: Track Workflow Rerun
2description: Track when GitHub Actions workflows are rerun (attempt > 1)
3
4runs:
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 }}'"