From 3ed9af5757a4186f08fced9e37b2cc38dbd67fad Mon Sep 17 00:00:00 2001 From: shadcn Date: Wed, 3 Sep 2025 20:04:28 +0400 Subject: [PATCH] ci: update registries workflow (#8135) * ci: update registries workflow * chore: remove invalid --- .github/workflows/validate-registries.yml | 36 +---------------------- 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/.github/workflows/validate-registries.yml b/.github/workflows/validate-registries.yml index 974b0d474..e5dbc743b 100644 --- a/.github/workflows/validate-registries.yml +++ b/.github/workflows/validate-registries.yml @@ -16,7 +16,6 @@ jobs: name: pnpm validate:registries permissions: contents: read - pull-requests: write steps: - uses: actions/checkout@v4 with: @@ -52,37 +51,4 @@ jobs: run: pnpm build --filter=shadcn - name: Validate registries - id: validate - run: | - pnpm --filter=v4 validate:registries - echo "validation_passed=$?" >> $GITHUB_ENV - continue-on-error: true - - - name: Add label to PR - if: github.event_name == 'pull_request' - uses: actions/github-script@v7 - with: - script: | - const validationPassed = '${{ env.validation_passed }}' === '0'; - const label = validationPassed ? 'registries: valid' : 'registries: invalid'; - const oppositeLabel = validationPassed ? 'registries: invalid' : 'registries: valid'; - - // Remove opposite label if it exists - try { - await github.rest.issues.removeLabel({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.issue.number, - name: oppositeLabel - }); - } catch (e) { - // Label might not exist, that's ok - } - - // Add the appropriate label - await github.rest.issues.addLabels({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.issue.number, - labels: [label] - }); + run: pnpm --filter=v4 validate:registries