Skip to content

Commit 9043849

Browse files
authored
fix: ensure run on merge + fix whitespace (#1714)
<!-- 🚨 ATTENTION! 🚨 This PR template is REQUIRED. PRs not following this format will be closed without review. Requirements: - PR title must follow commit conventions: https://www.conventionalcommits.org/en/v1.0.0/ - Label your PR with the correct type (e.g., 🐛 Bug, ✨ Enhancement, 🧪 Test, etc.) - Provide clear and specific details in each section --> **Motivation:** Certora runs were not being processed either on PR or on merge. This ensures the PR runs on merge. **Modifications:** * Includes `types: [closed]` * Adjusts whitespace **Result:** Cause Certora runs on merge Co-authored-by: Nadir Akhtar <9601075+nadir-akhtar@users.noreply.github.com>
1 parent 52b35bf commit 9043849

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/certora-prover.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
on:
22
# Run when PRs are merged into main and touch relevant code paths
33
pull_request:
4+
types: [closed]
45
branches:
56
- main
67
paths:
@@ -29,14 +30,12 @@ jobs:
2930
# 2. It's a push to a certora/* branch
3031
# 3. It's a scheduled run
3132
# 4. It's a manually triggered run
32-
if: >
33-
(github.event_name == 'pull_request' &&
34-
github.event.pull_request.merged == true) ||
35-
(github.event_name == 'push' &&
36-
startsWith(github.ref, 'refs/heads/certora/')) ||
33+
if: |
34+
(github.event_name == 'pull_request' && github.event.pull_request.merged == true) ||
35+
(github.event_name == 'push' && startsWith(github.ref, 'refs/heads/certora/')) ||
3736
github.event_name == 'schedule' ||
3837
github.event_name == 'workflow_dispatch'
39-
38+
4039
runs-on: ubuntu-latest
4140
permissions:
4241
contents: read

0 commit comments

Comments
 (0)