pull/184/head
Simon Let 3 years ago
parent 2fc5ca9ee8
commit 7a857f19b6
  1. 6
      .github/workflows/go.yaml

@ -13,7 +13,11 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Install grep & coreutils - name: Install grep & coreutils
run: sudo apt update -yqq && sudo apt install grep coreutils -yqq # run: sudo apt update -yqq && sudo apt install grep coreutils -yqq
run: cat go.mod
- name: grep
run: grep 'go \d\.' go.mod
- name: Get Go version - 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 \d\.' go.mod | cut -d ' ' -f 2)" >> $GITHUB_ENV && cat $GITHUB_ENV

Loading…
Cancel
Save