Merge lib with storybook #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate Release Info | |
on: | |
pull_request: | |
types: [labeled, unlabeled, opened, edited, reopened, synchronize, ready_for_review] | |
paths: | |
- 'src/hooks/**/use*.ts' | |
- 'src/index.ts' | |
env: | |
IS_LABELED_RELEASE: contains(github.event.pull_request.labels.*.name, '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') | |
jobs: | |
get-env-vars: | |
name: Load Environment Vars Into Outputs | |
runs-on: ubuntu-latest | |
outputs: | |
IS_LABELED_RELEASE: ${{ env.IS_LABELED_RELEASE }} | |
IS_LABELED_NON_LOGICAL: ${{ env.IS_LABELED_NON_LOGICAL }} | |
steps: | |
- run: echo "null" | |
# A step that does something is required for a job to be valid, so this does nothing but allows the job to exist | |
check-pr: | |
name: Validate Release Label and Notes | |
needs: [get-env-vars] | |
runs-on: ubuntu-latest | |
if: needs.get-env-vars.IS_LABELED_RELEASE || !needs.get-env-vars.IS_LABELED_NON_LOGICAL | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: jefflinse/pr-semver-bump@v1 | |
name: Validate Pull Request Metadata | |
with: | |
mode: validate | |
repo-token: ${{ secrets.GITHUB_TOKEN }} |