70bf21e064
Handle Changesets / Handle Changesets (push) Waiting to run
Semgrep OSS scan / semgrep-oss (push) Waiting to run
Deploy (to testing) and Test Playground Preview Worker / Deploy Playground Preview Worker (testing) (push) Has been skipped
Deploy Workers Shared Staging / Deploy Workers Shared Staging (push) Failing after 0s
Prerelease / build (push) Has been skipped
69 lines
2.1 KiB
YAML
69 lines
2.1 KiB
YAML
name: Validate PR Description
|
|
|
|
on:
|
|
merge_group:
|
|
pull_request:
|
|
types:
|
|
[
|
|
opened,
|
|
synchronize,
|
|
reopened,
|
|
labeled,
|
|
unlabeled,
|
|
edited,
|
|
ready_for_review,
|
|
converted_to_draft,
|
|
]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
check:
|
|
# Don't check the Version Packages PR or merge queue jobs
|
|
if: github.event_name != 'merge_group' && github.head_ref != 'changeset-release/main'
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}-add-pr
|
|
cancel-in-progress: ${{ github.head_ref != 'changeset-release/main' }}
|
|
timeout-minutes: 30
|
|
name: Check
|
|
runs-on: ubuntu-slim
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
with:
|
|
fetch-depth: 1
|
|
persist-credentials: false
|
|
|
|
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
|
|
id: changes
|
|
with:
|
|
filters: |
|
|
everything_but_markdown:
|
|
- '!**/*.md'
|
|
|
|
- name: Install Dependencies
|
|
if: steps.changes.outputs.everything_but_markdown == 'true'
|
|
uses: ./.github/actions/install-dependencies
|
|
with:
|
|
turbo-api: ${{ secrets.TURBO_API }}
|
|
turbo-team: ${{ secrets.TURBO_TEAM }}
|
|
turbo-token: ${{ secrets.TURBO_TOKEN }}
|
|
turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }}
|
|
|
|
- name: List changed files
|
|
if: steps.changes.outputs.everything_but_markdown == 'true'
|
|
id: files
|
|
uses: Ana06/get-changed-files@25f79e676e7ea1868813e21465014798211fad8c # v2.3.0
|
|
with:
|
|
format: "json"
|
|
|
|
- run: node -r esbuild-register tools/deployments/validate-pr-description.ts
|
|
if: steps.changes.outputs.everything_but_markdown == 'true'
|
|
env:
|
|
TITLE: ${{ github.event.pull_request.title }}
|
|
BODY: ${{ github.event.pull_request.body }}
|
|
LABELS: ${{ toJson(github.event.pull_request.labels.*.name) }}
|
|
FILES: ${{ steps.files.outputs.all }}
|
|
DRAFT: ${{ github.event.pull_request.draft }}
|