Skip to content

Update build.yml

Update build.yml #37

Workflow file for this run

name: Test for workflow
on: push
defaults:
run:
shell: bash -euxo pipefail {0}
jobs:
build:
strategy:
matrix:
state: [lfc, nolfc]
uses: ./.github/workflows/build.yml

Check failure on line 11 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / Test for workflow

Invalid workflow file

The workflow is not valid. In .github/workflows/test.yml (Line: 11, Col: 11): Error from called workflow a-masterov/test-workflow/.github/workflows/build.yml@06861f589fc0676f3659f32225fdf6b5a0ae79ff (Line: 21, Col: 14): Unexpected symbol: '"lfc"'. Located at position 17 within expression: inputs.state == "lfc" && "true" || false
with:
state: ${{ matrix.state }}
conclusion:
if: always()
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Fail
if: |
contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cancelled')
|| contains(needs.*.result, 'skipped')
run: exit 1