@@ -18,15 +18,14 @@ permissions:
1818 contents : read
1919
2020jobs :
21- check :
21+ detect-changes :
2222 # Don't check the Version Packages PR
2323 if : github.head_ref != 'changeset-release/main'
24- concurrency :
25- group : ${{ github.workflow }}-${{ github.ref }}-add-pr
26- cancel-in-progress : true
27- timeout-minutes : 30
28- name : Check
24+ timeout-minutes : 5
25+ name : Detect Changes
2926 runs-on : ubuntu-slim
27+ outputs :
28+ non_markdown_changed : ${{ steps.changes.outputs.everything_but_markdown }}
3029 steps :
3130 - name : Checkout Repo
3231 uses : actions/checkout@v4
@@ -40,22 +39,31 @@ jobs:
4039 everything_but_markdown:
4140 - '!**/*.md'
4241
43- 44- id : files
42+ validate :
43+ name : Validate PR Description
44+ needs : detect-changes
45+ if : needs.detect-changes.outputs.non_markdown_changed == 'true'
46+ concurrency :
47+ group : ${{ github.workflow }}-${{ github.ref }}-validate
48+ cancel-in-progress : true
49+ timeout-minutes : 30
50+ runs-on : ubuntu-slim
51+ steps :
52+ - name : Checkout Repo
53+ uses : actions/checkout@v4
4554 with :
46- format : " json "
55+ fetch-depth : 1
4756
4857 - name : Install Dependencies
49- if : steps.changes.outputs.everything_but_markdown == 'true'
5058 uses : ./.github/actions/install-dependencies
5159 with :
60+ pnpm-filters : " tools"
5261 turbo-api : ${{ secrets.TURBO_API }}
5362 turbo-team : ${{ secrets.TURBO_TEAM }}
5463 turbo-token : ${{ secrets.TURBO_TOKEN }}
5564 turbo-signature : ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }}
5665
5766 - run : node -r esbuild-register tools/deployments/validate-pr-description.ts
58- if : steps.changes.outputs.everything_but_markdown == 'true'
5967 env :
6068 TITLE : ${{ github.event.pull_request.title }}
6169 BODY : ${{ github.event.pull_request.body }}
0 commit comments