From 1d9f0f0665aa2a4d4af304a0c4f4be1443d9bb96 Mon Sep 17 00:00:00 2001 From: Luud Janssen Date: Mon, 28 Oct 2024 13:49:16 +0100 Subject: [PATCH] chore: remove checkout step from action --- .github/actions/prepare/action.yml | 7 +------ .github/workflows/build.yml | 5 +++++ .github/workflows/pr-checks.yml | 15 +++++++++++++++ .github/workflows/test.yml | 5 +++++ 4 files changed, 26 insertions(+), 6 deletions(-) diff --git a/.github/actions/prepare/action.yml b/.github/actions/prepare/action.yml index f4d76ae..758a47d 100644 --- a/.github/actions/prepare/action.yml +++ b/.github/actions/prepare/action.yml @@ -1,15 +1,10 @@ name: Prepare -description: Checks out the code, sets up Node.js and PNPM and installs dependencies +description: Sets up Node.js and PNPM and installs dependencies runs: using: "composite" steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Setup pnpm uses: pnpm/action-setup@v3 with: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f9f8e44..e77b9f0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,6 +11,11 @@ jobs: runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Prepare uses: ./.github/actions/prepare diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index f0cb631..6bac3d2 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -15,6 +15,11 @@ jobs: runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Prepare uses: ./.github/actions/prepare @@ -26,6 +31,11 @@ jobs: runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Prepare uses: ./.github/actions/prepare @@ -37,6 +47,11 @@ jobs: runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Prepare uses: ./.github/actions/prepare diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1ccd3af..a3d1877 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,6 +11,11 @@ jobs: runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Prepare uses: ./.github/actions/prepare