Skip to content

Commit 81c268a

Browse files
Nathan Gillettcursoragent
authored andcommitted
fix(ci): skip cert-bot pushes to stop conformance artifact loop
Pushes from the cert bot retriggered CI; fresh oracle output always changes timestamps so another commit+push ran forever. Skip mint/publish when actor is the cert bot (align INTENTPROOF_CERT_BOT_ACTOR slug with the GitHub App if yours is not intentproof-cert-bot). Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent b64f70d commit 81c268a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,14 +139,15 @@ jobs:
139139

140140
- name: Mint cert-bot installation token
141141
id: cert_bot_token
142-
if: ${{ github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'master') && github.actor != 'github-actions[bot]' }}
142+
# Skip when the cert bot pushed: its commit would re-run conformance and loop (new issuedAt/generatedAt each run).
143+
if: ${{ github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'master') && github.actor != 'github-actions[bot]' && github.actor != 'intentproof-cert-bot[bot]' }}
143144
uses: actions/create-github-app-token@v1
144145
with:
145146
app-id: ${{ vars.INTENTPROOF_CERT_BOT_ID }}
146147
private-key: ${{ secrets.INTENTPROOF_CERT_BOT_PRIVATE_KEY }}
147148

148149
- 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]' }}
150+
if: ${{ github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'master') && github.actor != 'github-actions[bot]' && github.actor != 'intentproof-cert-bot[bot]' }}
150151
env:
151152
INTENTPROOF_CERT_BOT_TOKEN: ${{ steps.cert_bot_token.outputs.token }}
152153
run: |

0 commit comments

Comments
 (0)