pull/184/head
Simon Let 3 years ago
parent 7fcf851dea
commit 2554507025
  1. 15
      .github/workflows/go.yaml
  2. 5
      .github/workflows/release.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

@ -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

Loading…
Cancel
Save