Repository navigation
spec(AST-094): touch presentations feel native by default #14569
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
| # Copyright (c) Meta Platforms, Inc. and affiliates. | |
| name: Internal Registry | |
| # Verifies every pinned dependency is available from the registry before it can | |
| # break a build. Temporarily advisory: the check still runs and surfaces | |
| # annotations, but a failure no longer fails the job (continue-on-error), so it | |
| # warns instead of blocking. Re-enable gating by removing continue-on-error and | |
| # marking the merge_group run ("Internal Registry / dependency-check") as a | |
| # REQUIRED status check; fork PRs are skipped and enforced by that run. | |
| on: | |
| pull_request: | |
| branches: ['main'] | |
| merge_group: | |
| permissions: {} | |
| jobs: | |
| dependency-check: | |
| runs-on: 4-core-ubuntu | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 50 | |
| - name: Classify changed files | |
| if: github.event_name == 'pull_request' | |
| id: scope | |
| run: | | |
| git fetch origin ${{ github.base_ref }} --depth=50 | |
| MERGE_BASE=$(git merge-base HEAD origin/${{ github.base_ref }} 2>/dev/null || echo "") | |
| if [ -z "$MERGE_BASE" ]; then | |
| printf 'docsite_only=false\nspec_only=false\ntooling_only=false\n' >> "$GITHUB_OUTPUT" | |
| exit 0 | |
| fi | |
| CLASSIFIER_ROOT="$RUNNER_TEMP/change-scope" | |
| CLASSIFIER_DIR="$CLASSIFIER_ROOT/.github/scripts" | |
| REGISTRY_DIR="$CLASSIFIER_ROOT/scripts" | |
| mkdir -p "$CLASSIFIER_DIR" "$REGISTRY_DIR" | |
| CLASSIFIER="$CLASSIFIER_DIR/change-scope.cjs" | |
| MATCHER="$CLASSIFIER_DIR/knowledge-paths.cjs" | |
| REGISTRY="$REGISTRY_DIR/component-packages.cjs" | |
| if git show "origin/${{ github.base_ref }}:.github/scripts/change-scope.cjs" > "$CLASSIFIER" 2>/dev/null \ | |
| && git show "origin/${{ github.base_ref }}:.github/scripts/knowledge-paths.cjs" > "$MATCHER" 2>/dev/null \ | |
| && git show "origin/${{ github.base_ref }}:scripts/component-packages.cjs" > "$REGISTRY" 2>/dev/null; then | |
| git diff --name-status "$MERGE_BASE"...HEAD \ | |
| | node "$CLASSIFIER" --github-output | |
| else | |
| # Missing trusted policy cannot grant a specialized lane. | |
| printf 'docsite_only=false\nspec_only=false\ntooling_only=false\n' \ | |
| >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Skip dependency checks for spec-only changes | |
| if: steps.scope.outputs.spec_only == 'true' | |
| run: echo "Spec-only PR — package dependencies cannot change" | |
| - uses: facebook/lexical/.github/actions/internal-registry/dependency-check@internal-registry-dependency-check-v1 | |
| if: steps.scope.outputs.spec_only != 'true' | |
| continue-on-error: true |