Skip to content

Commit 96d71ce

Browse files
authored
[CI] Only run immutability check on PRs
Let's remove this until #1728 has been resolved properly to avoid build errors on master.
1 parent 4482b50 commit 96d71ce

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ name: CI
22

33
on:
44
pull_request:
5-
push:
6-
branches:
7-
- master
8-
workflow_dispatch:
95

106
jobs:
117
required-files:
@@ -26,21 +22,12 @@ jobs:
2622
path: 'new'
2723

2824
# Pull Requests
29-
- name: Checkout the target branch (PRs)
25+
- name: Checkout the target branch
3026
uses: actions/checkout@v2
31-
if: github.event_name == 'pull_request'
3227
with:
3328
ref: '${{ github.base_ref }}'
3429
path: 'old'
35-
36-
# Pushes
37-
- name: Checkout the previous commit (Pushes)
38-
uses: actions/checkout@v2
39-
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
40-
with:
41-
ref: '${{ github.sha }}~'
42-
path: 'old'
43-
30+
4431
- name: Check that no test has been mutated
4532
run: |
4633
for oldf in old/exercises/*/canonical-data.json; do

0 commit comments

Comments
 (0)