Skip to content

Update makecheck.yml #35

Update makecheck.yml

Update makecheck.yml #35

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / 📝 Make Build Check

Invalid workflow file

The workflow is not valid. .github/workflows/makecheck.yml (Line: 27, Col: 9): Unrecognized named-value: 'steps'. Located at position 1 within expression: steps.hasChanged.outputs.check == true
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