feat: prefer native cf preview builds #2155
Workflow file for this run
This file contains hidden or 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 PR Description | |
| on: | |
| 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 | |
| if: github.head_ref != 'changeset-release/main' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }}-add-pr | |
| cancel-in-progress: true | |
| timeout-minutes: 30 | |
| name: Check | |
| runs-on: ubuntu-slim | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3 | |
| 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" | |
| - name: Test PR description validation | |
| if: steps.changes.outputs.everything_but_markdown == 'true' | |
| run: vp exec tsx --test tools/deployments/validate-pr-description.test.ts | |
| - run: vp exec tsx 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 }} |