Skip to content

Fix release version info validation workflow #33

Fix release version info validation workflow

Fix release version info validation workflow #33

name: Validate Release Info
on:
pull_request:
types:
[
labeled,
unlabeled,
opened,
edited,
reopened,
synchronize,
ready_for_review,
]
paths:
- "packages/too-many-hooks/**.ts"
env:
IS_LABELED_RELEASE: ${{ contains(github.event.pull_request.labels.*.name, 'patch release') || contains(github.event.pull_request.labels.*.name, 'minor release') || contains(github.event.pull_request.labels.*.name, 'major release') }}
IS_LABELED_NON_LOGICAL: ${{ contains(github.event.pull_request.labels.*.name, 'tooling') || contains(github.event.pull_request.labels.*.name, 'documentation') || contains(github.event.pull_request.labels.*.name, 'restructure') }}
NEEDS_CHECK: ${{ env.IS_LABELED_RELEASE || !env.IS_LABELED_NON_LOGICAL }}

Check failure on line 20 in .github/workflows/validate-pr-release-info.yml

View workflow run for this annotation

GitHub Actions / Validate Release Info

Invalid workflow file

The workflow is not valid. .github/workflows/validate-pr-release-info.yml (Line: 20, Col: 16): Unrecognized named-value: 'env'. Located at position 1 within expression: env.IS_LABELED_RELEASE || !env.IS_LABELED_NON_LOGICAL
jobs:
check-pr:
name: Validate Release Label and Notes
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
if: ${{ fromJSON(env.NEEDS_CHECK) }}
uses: actions/checkout@v2
- name: 'Validate Pull Request Metadata'
if: ${{ fromJSON(env.NEEDS_CHECK) }}
uses: jefflinse/pr-semver-bump@v1
with:
mode: validate
repo-token: ${{ secrets.GITHUB_TOKEN }}