Skip to content

Update makefile.yml #17

Update makefile.yml

Update makefile.yml #17

Workflow file for this run

variables:
isMain: $[eq(variables['Build.SourceBranch'], 'refs/heads/main')]
trigger:
- main
- master
- staging/*
- 20*
pr:
- main
- master
- 20*
pool:
vmImage: 'ubuntu-latest'
jobs:
- job: checkpatch

Check failure on line 20 in .github/workflows/makefile.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/makefile.yml

Invalid workflow file

You have an error in your yaml syntax on line 20
condition: eq(variables['Build.Reason'], 'PullRequest')
variables:
BUILD_TYPE: checkpatch
TARGET_BRANCH: $[ variables['System.PullRequest.TargetBranch'] ]
COMMIT: $[ variables['Build.SourceVersion'] ]
REPO_URL: $[ variables['Build.Repository.Uri'] ]
steps:
- checkout: none
- script: |
set -ex
git init
git remote add origin ${REPO_URL}
git fetch --filter=tree:0 --no-tags origin ${COMMIT}
git checkout --progress --force ${COMMIT}
./ci/travis/run-build.sh
displayName: 'Checkpatch Script'
- job: dt_binding_check
condition: eq(variables['Build.Reason'], 'PullRequest')
variables:
BUILD_TYPE: dt_binding_check
TARGET_BRANCH: $[ variables['System.PullRequest.TargetBranch'] ]
COMMIT: $[ variables['Build.SourceVersion'] ]
REPO_URL: $[ variables['Build.Repository.Uri'] ]
UPSTREAM_REPO_URL: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git
UPSTREAM_REPO_BRANCH: dt/next
steps:
- checkout: none
- script: |
set -ex
git init
git remote add origin ${REPO_URL}
git fetch --progress --filter=tree:0 --no-tags origin ${COMMIT}
git remote add upstream ${UPSTREAM_REPO_URL}
git fetch --progress --depth=1 upstream ${UPSTREAM_REPO_BRANCH}
git checkout --progress --force FETCH_HEAD
git checkout ${COMMIT} -- ci/travis/
./ci/travis/run-build.sh
displayName: 'Bindings Check Script'