Skip to content

Try to fix syntax error #9

Try to fix syntax error

Try to fix syntax error #9

Workflow file for this run

---
# !! THIS FILE WAS GENERATED USING repoman !!
# Modify `repo.yaml` instead and use `repoman` to update this file
# See: https://github.com/metaborg/metaborg-gradle/
name: 'Build & Publish'
on: # yamllint disable-line rule:truthy
push:
pull_request:
branches:
- master
jobs:
build:
uses: metaborg/actions/.github/workflows/gradle-build-matrix.yaml@main

Check failure on line 16 in .github/workflows/build.yaml

View workflow run for this annotation

GitHub Actions / Build & Publish

Invalid workflow file

The workflow is not valid. In .github/workflows/build.yaml (Line: 16, Col: 11): Error from called workflow metaborg/actions/.github/workflows/gradle-build-matrix.yaml@main (Line: 53, Col: 13): Unrecognized named-value: 'needs-docker'. Located at position 1 within expression: needs-docker
with:
gradle-command: |
gradle build
# needs-docker: true
# Due to a bug, we cannot set the timeout here: https://github.com/orgs/community/discussions/50481
# Timeout in 10 minutes, as Stratego initialization can sometimes deadlock
# timeout-minutes: 10
# Publish snapshots
publish-snapshot:
uses: metaborg/actions/.github/workflows/gradle-publish.yaml@main
with:
gradle-command: |
gradle publish -Pgitonium.isSnapshot=true
gradle-version-command: |
gradle -q :printVersion -Pgitonium.isSnapshot=true
needs-docker: true
if: "github.event_name == 'push' && github.ref == 'refs/heads/master'"
needs: [build]
secrets:
METABORG_ARTIFACTS_USERNAME: ${{ secrets.METABORG_ARTIFACTS_USERNAME }}
METABORG_ARTIFACTS_PASSWORD: ${{ secrets.METABORG_ARTIFACTS_PASSWORD }}
# Publish releases
publish-release:
uses: metaborg/actions/.github/workflows/gradle-publish.yaml@main
with:
gradle-command: |
gradle publish
gradle-version-command: |
gradle -q :printVersion
needs-docker: true
if: "github.event_name == 'push' && startsWith(github.ref, 'refs/tags/devenv-release/')"
needs: [build]
secrets:
METABORG_ARTIFACTS_USERNAME: ${{ secrets.METABORG_ARTIFACTS_USERNAME }}
METABORG_ARTIFACTS_PASSWORD: ${{ secrets.METABORG_ARTIFACTS_PASSWORD }}