Otherwise, Dependabot would run builds whenever something is pushed on
master and it rebases its PR. It is still possible to just click on the
skipped workflow in the PR and then issue "re-run all jobs" in order to
perform a build.
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
jobs:
build:
- runs-on: ubuntu-latest
+ # No automatic builds for Dependabot PRs
+ # Caveat: cannot start 'if:' expression with '!', hence '!= true'
+ if: startsWith(github.actor, 'dependabot') != true
+
strategy:
fail-fast: false
matrix:
java: [ 11, 14, 17 ]
+
+ runs-on: ubuntu-latest
+
steps:
- uses: actions/checkout@v2