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