Skip to content

Commit b89ea27

Browse files
Nathan Gillettcursoragent
andcommitted
fix(ci): skip cert-bot publish loop and ignore conformance-only pushes
- Gate mint/publish on the real GitHub App actor (intentproof-cert-bot[bot]), not github-actions[bot], so follow-up commits from the app do not re-run publish. - On push to main, ignore paths that only update repo-root conformance JSON so main does not churn after artifact commits (fewer stale PR bases). Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent c4c6313 commit b89ea27

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: CI
33
on:
44
push:
55
branches: [main, master]
6+
paths-ignore:
7+
- "conformance-certificate.json"
8+
- "conformance-report.json"
69
pull_request:
710

811
concurrency:
@@ -139,14 +142,14 @@ jobs:
139142

140143
- name: Mint cert-bot installation token
141144
id: cert_bot_token
142-
if: ${{ github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'master') && github.actor != 'github-actions[bot]' }}
145+
if: ${{ github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'master') && github.actor != 'intentproof-cert-bot[bot]' && github.actor != 'github-actions[bot]' }}
143146
uses: actions/create-github-app-token@v1
144147
with:
145148
app-id: ${{ vars.INTENTPROOF_CERT_BOT_ID }}
146149
private-key: ${{ secrets.INTENTPROOF_CERT_BOT_PRIVATE_KEY }}
147150

148151
- name: Publish conformance certificate and report at repo root
149-
if: ${{ github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'master') && github.actor != 'github-actions[bot]' }}
152+
if: ${{ github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'master') && github.actor != 'intentproof-cert-bot[bot]' && github.actor != 'github-actions[bot]' }}
150153
env:
151154
INTENTPROOF_CERT_BOT_TOKEN: ${{ steps.cert_bot_token.outputs.token }}
152155
run: |

0 commit comments

Comments
 (0)