From 30011fe60979bd5e193a040d399a0bd5bc6f7fc9 Mon Sep 17 00:00:00 2001 From: Sascha Mann Date: Wed, 4 Nov 2020 11:08:12 +0100 Subject: [PATCH] [CI] Only run immutability check on PRs (#1730) Let's remove this until #1728 has been resolved properly to avoid build errors on master. --- .github/workflows/ci.yml | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 317daff105..f0fe15865f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,10 +2,6 @@ name: CI on: pull_request: - push: - branches: - - master - workflow_dispatch: jobs: required-files: @@ -26,21 +22,12 @@ jobs: path: 'new' # Pull Requests - - name: Checkout the target branch (PRs) + - name: Checkout the target branch uses: actions/checkout@v2 - if: github.event_name == 'pull_request' with: ref: '${{ github.base_ref }}' path: 'old' - - # Pushes - - name: Checkout the previous commit (Pushes) - uses: actions/checkout@v2 - if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' - with: - ref: '${{ github.sha }}~' - path: 'old' - + - name: Check that no test has been mutated run: | for oldf in old/exercises/*/canonical-data.json; do