Update makecheck.yml #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 📝 Make Build Check | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
workflow_dispatch: | ||
jobs: | ||
check: | ||
runs-on: [ubuntu-latest] | ||
outputs: | ||
output1: ${{ steps.hasChanged.outputs.check }} | ||
steps: | ||
- name: Check if latest commit changed a .c file | ||
id: hasChanged | ||
if: ${{contains(github.event.head_commit.modified, '.c') || contains(github.event.head_commit.modified, '.h')}} | ||
run: | | ||
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 | ||
Check failure on line 27 in .github/workflows/makecheck.yml GitHub Actions / 📝 Make Build CheckInvalid workflow file
|
||
container: | ||
image: walkero/docker4amigavbcc:latest-m68k | ||
volumes: | ||
- '${{ github.workspace }}:/opt/code' | ||
steps: | ||
- name: 🚚 Get latest code | ||
uses: actions/checkout@v2 | ||
- name: 🏃 Running Make | ||
run: make |