diff --git a/.github/workflows/node-windows.yml b/.github/workflows/node-windows.yml index 39a740c85..474003c5c 100644 --- a/.github/workflows/node-windows.yml +++ b/.github/workflows/node-windows.yml @@ -26,9 +26,11 @@ jobs: - name: Checkout Commit uses: actions/checkout@v4 + with: + fetch-depth: 2 - - name: Checkout Master - run: git branch -f master origin/master + - name: Update Master + run: git pull --force --no-tags origin master:master - name: Setup Node uses: actions/setup-node@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 11ab9a35f..acecfcbf2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,6 +19,13 @@ jobs: steps: - name: Checkout Commit uses: actions/checkout@v4 + with: + fetch-depth: 2 + + - name: Update Master + run: | + git pull --force --no-tags origin master:master + git checkout master - name: Setup Node uses: actions/setup-node@v3 @@ -26,11 +33,6 @@ jobs: node-version: 20 registry-url: https://registry.npmjs.org/ - - name: Checkout Master - run: | - git branch -f master origin/master - git checkout master - - name: Enable Corepack id: pnpm-setup run: | diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index a97dd28b2..a08ff2262 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -24,9 +24,11 @@ jobs: steps: - name: Checkout Commit uses: actions/checkout@v4 + with: + fetch-depth: 2 - - name: Checkout Master - run: git branch -f master origin/master + - name: Update Master + run: git pull --force --no-tags origin master:master - name: Setup Node uses: actions/setup-node@v3