From 0469590cc4b0202bb24e7dbc6d73d39bee4438af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lorber?= Date: Thu, 18 Jan 2024 12:01:02 +0100 Subject: [PATCH] docs: GitHub actions deployment should use fetch-depth: 0 + actions upgrades (#9759) --- website/docs/deployment.mdx | 24 ++++++++++++------- .../version-3.1.0/deployment.mdx | 24 ++++++++++++------- 2 files changed, 32 insertions(+), 16 deletions(-) diff --git a/website/docs/deployment.mdx b/website/docs/deployment.mdx index e5a0df6f57f6..a5c9231bcdbd 100644 --- a/website/docs/deployment.mdx +++ b/website/docs/deployment.mdx @@ -400,8 +400,10 @@ jobs: name: Deploy to GitHub Pages runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 with: node-version: 18 cache: yarn @@ -443,8 +445,10 @@ jobs: name: Test deployment runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 with: node-version: 18 cache: yarn @@ -505,8 +509,10 @@ jobs: if: github.event_name != 'push' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 with: node-version: 18 cache: yarn @@ -518,8 +524,10 @@ jobs: if: github.event_name != 'pull_request' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 with: node-version: 18 cache: yarn diff --git a/website/versioned_docs/version-3.1.0/deployment.mdx b/website/versioned_docs/version-3.1.0/deployment.mdx index e5a0df6f57f6..a5c9231bcdbd 100644 --- a/website/versioned_docs/version-3.1.0/deployment.mdx +++ b/website/versioned_docs/version-3.1.0/deployment.mdx @@ -400,8 +400,10 @@ jobs: name: Deploy to GitHub Pages runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 with: node-version: 18 cache: yarn @@ -443,8 +445,10 @@ jobs: name: Test deployment runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 with: node-version: 18 cache: yarn @@ -505,8 +509,10 @@ jobs: if: github.event_name != 'push' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 with: node-version: 18 cache: yarn @@ -518,8 +524,10 @@ jobs: if: github.event_name != 'pull_request' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 with: node-version: 18 cache: yarn