diff --git a/.github/actions/dangerous-git-checkout/action.yml b/.github/actions/dangerous-git-checkout/action.yml deleted file mode 100644 index 5978988025..0000000000 --- a/.github/actions/dangerous-git-checkout/action.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Dangerous git Checkout -description: "Git Checkout from PR code so we can run checks from forks" -runs: - using: "composite" - steps: - - name: Checkout repo - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.sha }} - fetch-depth: 2 - sparse-checkout-cone-mode: false - sparse-checkout: | - /* - !/example-apps/ - !**/*.mp4 - !/docs/images/ - !packages/app-store/*/static/*.png - !packages/app-store/*/static/*.jpg - !packages/app-store/*/static/*.jpeg - !packages/app-store/*/static/*.gif diff --git a/.github/workflows/e2e-atoms.yml b/.github/workflows/e2e-atoms.yml index 38b4bbe289..90485e8539 100644 --- a/.github/workflows/e2e-atoms.yml +++ b/.github/workflows/e2e-atoms.yml @@ -29,7 +29,9 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - uses: actions/checkout@v4 - - uses: ./.github/actions/dangerous-git-checkout + with: + sparse-checkout: .github + - uses: ./.github/actions/cache-checkout - uses: ./.github/actions/yarn-install - uses: ./.github/actions/yarn-playwright-install - name: Run E2E Atoms Tests diff --git a/.github/workflows/nextjs-bundle-analysis.yml b/.github/workflows/nextjs-bundle-analysis.yml index c796c9f684..d79c6bf2c2 100644 --- a/.github/workflows/nextjs-bundle-analysis.yml +++ b/.github/workflows/nextjs-bundle-analysis.yml @@ -53,7 +53,9 @@ jobs: timeout-minutes: 30 steps: - uses: actions/checkout@v4 - - uses: ./.github/actions/dangerous-git-checkout + with: + sparse-checkout: .github + - uses: ./.github/actions/cache-checkout - uses: ./.github/actions/yarn-install - run: yarn prisma generate - uses: ./.github/actions/cache-build