Skip to content

Commit

Permalink
Update makecheck.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Arisamiga authored Sep 1, 2023
1 parent 4c8021e commit 0d64299
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/makecheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,20 @@ on:
jobs:
check:
runs-on: [ubuntu-latest]
outputs:
output1: ${{ steps.hasChanged.outputs.check }}
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')}}
if: ${{contains(github.event.head_commit.modified, '.c') || contains(github.event.head_commit.modified, '.h')}}
run: |
echo 'C files not changed'
exit 0
echo 'C files has changed'
echo "::set-output name=check::true"
run:
needs: check
name: 📝 Make Build Check
runs-on: ubuntu-latest # linux required if you want to use docker
if: steps.hasChanged.outputs.check == true
container:
image: walkero/docker4amigavbcc:latest-m68k
volumes:
Expand Down

0 comments on commit 0d64299

Please sign in to comment.