From 2554507025c36e070b3dd88850175ffa1fc13e80 Mon Sep 17 00:00:00 2001 From: Simon Let Date: Thu, 15 Dec 2022 17:37:51 +0100 Subject: [PATCH] ci --- .github/workflows/go.yaml | 15 +-------------- .github/workflows/release.yaml | 5 +---- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 33f1ac5..ceccc78 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -12,21 +12,8 @@ jobs: with: fetch-depth: 0 - - name: cat - # run: sudo apt update -yqq && sudo apt install grep coreutils -yqq - run: cat go.mod - - - name: which - run: which grep - - - name: version - run: grep --version - - - name: grep - run: grep '^go ' go.mod - - name: Get Go version - run: echo "GO_VERSION=$(grep 'go \d\.' go.mod | cut -d ' ' -f 2)" >> $GITHUB_ENV && cat $GITHUB_ENV + run: echo "GO_VERSION=$(grep '^go ' go.mod | cut -d ' ' -f 2)" >> $GITHUB_ENV && cat $GITHUB_ENV - name: Set up Go uses: actions/setup-go@v3 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 21d34ad..17e739f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -17,11 +17,8 @@ jobs: with: fetch-depth: 0 - - name: Install grep & coreutils - run: sudo apt update -yqq && sudo apt install grep coreutils -yqq - - name: Get Go version - run: echo "GO_VERSION=$(grep 'go \d\.' go.mod | cut -d ' ' -f 2)" >> $GITHUB_ENV + run: echo "GO_VERSION=$(grep '^go ' go.mod | cut -d ' ' -f 2)" >> $GITHUB_ENV - name: Set up Go uses: actions/setup-go@v3