From 9330f5986b0f546c72cdc6c3ac7646850c183f18 Mon Sep 17 00:00:00 2001
From: robiiinos <dyrda.robin@outlook.fr>
Date: Sat, 25 Jul 2020 15:27:23 +0200
Subject: [PATCH] Update GitHub Actions

Prepare GitHub Actions checkout for future update where we need to pin the branch as 'master' will not be the default branch anymore.
---
 .github/workflows/lint.yml | 8 +++++++-
 .github/workflows/test.yml | 4 +++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 90c178e..77ebe98 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -13,6 +13,9 @@ jobs:
     runs-on: ubuntu-latest
     steps:
     - uses: actions/checkout@v2
+      with:
+        ref: master
+
     - name: shellcheck
       uses: ludeeus/action-shellcheck@0.4.1
       env:
@@ -21,7 +24,10 @@ jobs:
   shfmt:
     runs-on: ubuntu-latest
     steps:
-    - uses: actions/checkout@v2
+      - uses: actions/checkout@v2
+      with:
+        ref: master
+
     - name: shfmt
       uses: bltavares/actions/shfmt@master
       env:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index e7b1e1c..8781a22 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -21,7 +21,9 @@ jobs:
           - centos-7-x64
           - centos-8-x64
     steps:
-    - uses: actions/checkout@master
+    - uses: actions/checkout@v2
+      with:
+        ref: master
 
     - name: Setup doctl
       uses: digitalocean/action-doctl@v2