diff --git a/.github/workflows/makecheck.yml b/.github/workflows/makecheck.yml index 393a292..a8c4a2f 100644 --- a/.github/workflows/makecheck.yml +++ b/.github/workflows/makecheck.yml @@ -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: