From a9ad348c71641f974cb2597a4edf47900b5f21aa Mon Sep 17 00:00:00 2001
From: knrt10 <tripathi.kautilya@gmail.com>
Date: Mon, 19 Oct 2020 17:27:43 +0530
Subject: [PATCH] Update github actions

New version of Go and actions@checkout are available. Add action to run
for changes in .github directory and on push to master branch event.

Signed-off-by: knrt10 <tripathi.kautilya@gmail.com>
---
 .github/workflows/backend.yml  | 16 ++++++++++++----
 .github/workflows/frontend.yml | 10 +++++++++-
 2 files changed, 21 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml
index 383d92e4..8819038d 100644
--- a/.github/workflows/backend.yml
+++ b/.github/workflows/backend.yml
@@ -4,6 +4,14 @@ on:
     paths:
     - 'backend/**'
     - Makefile
+    - '.github/**'
+  push:
+    branches:
+      - master
+    paths:
+    - 'backend/**'
+    - Makefile
+    - '.github/**'
 
 jobs:
 
@@ -13,14 +21,14 @@ jobs:
 
     steps:
 
-    - name: Set up Go 1.13
-      uses: actions/setup-go@v1
+    - name: Set up Go
+      uses: actions/setup-go@v2.1.2
       with:
-        go-version: 1.13.x
+        go-version: '1.15.2'
       id: go
 
     - name: Check out code
-      uses: actions/checkout@v1
+      uses: actions/checkout@v2.3.3
 
     - name: Lint, Build & Check
       run: |
diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml
index 7f179ca7..0630bc6d 100644
--- a/.github/workflows/frontend.yml
+++ b/.github/workflows/frontend.yml
@@ -5,6 +5,14 @@ on:
     paths:
     - 'frontend/**'
     - 'Makefile'
+    - '.github/**'
+  push:
+    branches:
+      - master
+    paths:
+    - 'frontend/**'
+    - Makefile
+    - '.github/**'
 
 jobs:
   build:
@@ -16,7 +24,7 @@ jobs:
         node-version: [10.x, 12.x]
 
     steps:
-    - uses: actions/checkout@v1
+    - uses: actions/checkout@v2.3.3
 
     - name: Use Node.js ${{ matrix.node-version }}
       uses: actions/setup-node@v1
-- 
GitLab