From a84b0159d013a5828b57e32a9e3c4bb6e6de0a42 Mon Sep 17 00:00:00 2001 From: Prakash Surya Date: Tue, 12 May 2020 12:05:18 -0700 Subject: [PATCH] Use "delphix/actions" for shfmt --- .github/scripts/install-shfmt.sh | 8 -------- .github/workflows/main.yml | 3 +-- 2 files changed, 1 insertion(+), 10 deletions(-) delete mode 100755 .github/scripts/install-shfmt.sh diff --git a/.github/scripts/install-shfmt.sh b/.github/scripts/install-shfmt.sh deleted file mode 100755 index 8fc8c764..00000000 --- a/.github/scripts/install-shfmt.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -eux - -if [[ ! -f /usr/local/bin/shfmt ]]; then - sudo wget -nv -O /usr/local/bin/shfmt \ - https://github.com/mvdan/sh/releases/download/v3.0.2/shfmt_v3.0.2_linux_amd64 - sudo chmod +x /usr/local/bin/shfmt -fi -echo "shfmt version $(/usr/local/bin/shfmt -version) is installed." diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b61512c7..04db557a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -118,5 +118,4 @@ jobs: runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 - - run: ./.github/scripts/install-shfmt.sh - - run: /usr/local/bin/shfmt -d . + - uses: delphix/actions/shfmt@master