From 01287288a7641ec6d813e196f2b1f3de7ae654a7 Mon Sep 17 00:00:00 2001
From: Rafael Guterres Jeffman <rjeffman@redhat.com>
Date: Fri, 18 Nov 2022 12:08:11 -0300
Subject: [PATCH] github worflows: speed up git checkout.

This patch add 'fetch-depth: 0' to 'checkout' plugin on Github Worflows
to slightly speed up verifications.
---
 .github/workflows/docs.yml   |  8 ++++++++
 .github/workflows/lint.yml   | 12 ++++++++++++
 .github/workflows/readme.yml |  2 ++
 3 files changed, 22 insertions(+)

diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index ed15b21e..b6bdad37 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -9,6 +9,8 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3.1.0
+        with:
+          fetch-depth: 0
       - uses: actions/setup-python@v4.3.0
         with:
           python-version: '3.x'
@@ -24,6 +26,8 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3.1.0
+        with:
+          fetch-depth: 0
       - uses: actions/setup-python@v4.3.0
         with:
           python-version: '3.x'
@@ -39,6 +43,8 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3.1.0
+        with:
+          fetch-depth: 0
       - uses: actions/setup-python@v4.3.0
         with:
           python-version: '3.x'
@@ -55,6 +61,8 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3.1.0
+        with:
+          fetch-depth: 0
       - uses: actions/setup-python@v4.3.0
         with:
           python-version: '3.x'
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 1e618932..303b7419 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -9,6 +9,8 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3.1.0
+        with:
+          fetch-depth: 0
       - uses: actions/setup-python@v4.3.0
         with:
           python-version: "3.x"
@@ -26,6 +28,8 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3.1.0
+        with:
+          fetch-depth: 0
       - uses: actions/setup-python@v4.3.0
         with:
           python-version: "3.x"
@@ -37,6 +41,8 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3.1.0
+        with:
+          fetch-depth: 0
       - uses: actions/setup-python@v4.3.0
         with:
           python-version: "3.x"
@@ -50,6 +56,8 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3.1.0
+        with:
+          fetch-depth: 0
       - uses: actions/setup-python@v4.3.0
         with:
           python-version: "3.x"
@@ -63,6 +71,8 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3.1.0
+        with:
+          fetch-depth: 0
       - uses: actions/setup-python@v4.3.0
         with:
           python-version: "3.x"
@@ -76,5 +86,7 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3.1.0
+        with:
+          fetch-depth: 0
       - name: Run ShellCheck
         uses: ludeeus/action-shellcheck@master
diff --git a/.github/workflows/readme.yml b/.github/workflows/readme.yml
index 7c188e68..edea5b9f 100644
--- a/.github/workflows/readme.yml
+++ b/.github/workflows/readme.yml
@@ -9,6 +9,8 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3.1.0
+        with:
+          fetch-depth: 0
       - name: Run readme test
         run: |
           error=0
-- 
GitLab