From c66bf59fd53a9f64fa7514b97395fca38e45f897 Mon Sep 17 00:00:00 2001
From: Ran Benita <ran@unusedvar.com>
Date: Fri, 8 May 2020 13:03:51 +0300
Subject: [PATCH] ci: update github action versions, remove outdated comment
 (#7177)

---
 .github/workflows/main.yml               | 18 ++++++++----------
 .github/workflows/release-on-comment.yml |  7 +++++--
 2 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index cd331f742..45e386e57 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -1,9 +1,3 @@
-# evaluating GitHub actions for CI, disregard failures when evaluating PRs
-#
-# this is still missing:
-# - deploy
-# - upload github notes
-#
 name: main
 
 on:
@@ -133,9 +127,11 @@ jobs:
             use_coverage: true
 
     steps:
-    - uses: actions/checkout@v1
+    - uses: actions/checkout@v2
+    # For setuptools-scm.
+    - run: git fetch --prune --unshallow
     - name: Set up Python ${{ matrix.python }}
-      uses: actions/setup-python@v1
+      uses: actions/setup-python@v2
       with:
         python-version: ${{ matrix.python }}
     - name: install python3.9
@@ -180,9 +176,11 @@ jobs:
     needs: [build]
 
     steps:
-    - uses: actions/checkout@v1
+    - uses: actions/checkout@v2
+    # For setuptools-scm.
+    - run: git fetch --prune --unshallow
     - name: Set up Python
-      uses: actions/setup-python@v1
+      uses: actions/setup-python@v2
       with:
         python-version: "3.7"
     - name: Install dependencies
diff --git a/.github/workflows/release-on-comment.yml b/.github/workflows/release-on-comment.yml
index fe62eb1cb..9d803cd38 100644
--- a/.github/workflows/release-on-comment.yml
+++ b/.github/workflows/release-on-comment.yml
@@ -14,9 +14,12 @@ jobs:
     if: (github.event.comment && startsWith(github.event.comment.body, '@pytestbot please')) || (github.event.issue && !github.event.comment && startsWith(github.event.issue.body, '@pytestbot please'))
 
     steps:
-    - uses: actions/checkout@v1
+    - uses: actions/checkout@v2
+    # For setuptools-scm.
+    - run: git fetch --prune --unshallow
+
     - name: Set up Python
-      uses: actions/setup-python@v1
+      uses: actions/setup-python@v2
       with:
         python-version: "3.8"
     - name: Install dependencies