If I have the following section in my github action workflow yaml:
env:
fullySupportedScalaVersions: "2.13.6"
test:
runs-on: ubuntu-latest
continue-on-error: ${{ contains(env.fullySupportedScalaVersions, matrix.scalaVersion) }}
I receive an error message like this:
Invalid workflow file : .github/workflows/main.yml#L38
The workflow is not valid. .github/workflows/main.yml (Line: 38, Col: 24): Unrecognized named-value: 'env'. Located at position 10 within expression: contains(env.fullySupportedScalaVersions, matrix.scalaVersion) .github/workflows/main.yml (Line: 38, Col: 24): Unexpected value '${{ contains(env.fullySupportedScalaVersions, matrix.scalaVersion) }}'
How do I solve or circumvent this problem?
The above is observed in the following workflow: https://github.com/tek/splain/blob/6b12e57954aae0852e9b948e12ef5637c478b53d/.github/workflows/main.yml