From c1ed372c128d065b90038b8d49bce89ec1e57ae2 Mon Sep 17 00:00:00 2001 From: Aris <64918822+Arisamiga@users.noreply.github.com> Date: Fri, 1 Sep 2023 22:05:46 +0100 Subject: [PATCH] Update makecheck.yml --- .github/workflows/makecheck.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/makecheck.yml b/.github/workflows/makecheck.yml index c2b7462..a526af9 100644 --- a/.github/workflows/makecheck.yml +++ b/.github/workflows/makecheck.yml @@ -7,12 +7,20 @@ on: branches: [main] workflow_dispatch: -jobs: +jobs: + check: + runs-on: [ubuntu-latest] + steps: + - name: Check if latest commit changed a .c file + if: ${{!contains(github.event.head_commit.modified, '.c') && !contains(github.event.head_commit.modified, '.h')}} + run: | + echo 'C files not changed' + exit 78 + run: + needs: check name: 📝 Make Build Check runs-on: ubuntu-latest # linux required if you want to use docker - # Check if latest commit changed a .c file - if: ${{contains(github.event.head_commit.modified, '.c') || contains(github.event.head_commit.modified, '.h')}} container: image: walkero/docker4amigavbcc:latest-m68k volumes: