From 7ac9f4f0232a2d740344d01ec3d7ea227f7755f6 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Thu, 13 Jan 2022 09:44:32 +0000 Subject: [PATCH] Read .go-version Workaround https://github.com/actions/setup-go/issues/23 --- .github/workflows/macos-filebeat.yml | 9 +++++---- .github/workflows/macos-heartbeat.yml | 9 +++++---- .github/workflows/macos-metricbeat.yml | 9 +++++---- .github/workflows/macos-packetbeat.yml | 9 +++++---- .github/workflows/macos-xpack-auditbeat.yml | 9 +++++---- .github/workflows/macos-xpack-filebeat.yml | 9 +++++---- .github/workflows/macos-xpack-functionbeat.yml | 9 +++++---- .github/workflows/macos-xpack-heartbeat.yml | 9 +++++---- .github/workflows/macos-xpack-metricbeat.yml | 9 +++++---- .github/workflows/macos-xpack-osquerybeat.yml | 9 +++++---- .github/workflows/macos-xpack-packetbeat.yml | 9 +++++---- 11 files changed, 55 insertions(+), 44 deletions(-) diff --git a/.github/workflows/macos-filebeat.yml b/.github/workflows/macos-filebeat.yml index 2f8e122bbe4..3552c363d48 100644 --- a/.github/workflows/macos-filebeat.yml +++ b/.github/workflows/macos-filebeat.yml @@ -14,13 +14,14 @@ jobs: macos: runs-on: macos-latest steps: - - name: Set up Go - uses: actions/setup-go@v2 + - uses: actions/checkout@v2 + - name: Fetch Go version from .go-version + run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV + - uses: actions/setup-go@v2 with: - go-version: '1.17.5' + go-version: ${{ env.GO_VERSION }} - name: Install dependencies run: go get -u github.com/magefile/mage - - uses: actions/checkout@v2 - name: Run build run: cd ${{ env.BEAT_MODULE }} && mage build - name: Run test diff --git a/.github/workflows/macos-heartbeat.yml b/.github/workflows/macos-heartbeat.yml index 4ef1a6ca260..aa4e645c746 100644 --- a/.github/workflows/macos-heartbeat.yml +++ b/.github/workflows/macos-heartbeat.yml @@ -14,13 +14,14 @@ jobs: macos: runs-on: macos-latest steps: - - name: Set up Go - uses: actions/setup-go@v2 + - uses: actions/checkout@v2 + - name: Fetch Go version from .go-version + run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV + - uses: actions/setup-go@v2 with: - go-version: '1.17.5' + go-version: ${{ env.GO_VERSION }} - name: Install dependencies run: go get -u github.com/magefile/mage - - uses: actions/checkout@v2 - name: Run build run: cd ${{ env.BEAT_MODULE }} && mage build - name: Run test diff --git a/.github/workflows/macos-metricbeat.yml b/.github/workflows/macos-metricbeat.yml index 0715b8cc60a..ae686e66ef8 100644 --- a/.github/workflows/macos-metricbeat.yml +++ b/.github/workflows/macos-metricbeat.yml @@ -14,13 +14,14 @@ jobs: macos: runs-on: macos-latest steps: - - name: Set up Go - uses: actions/setup-go@v2 + - uses: actions/checkout@v2 + - name: Fetch Go version from .go-version + run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV + - uses: actions/setup-go@v2 with: - go-version: '1.17.5' + go-version: ${{ env.GO_VERSION }} - name: Install dependencies run: go get -u github.com/magefile/mage - - uses: actions/checkout@v2 - name: Run build run: cd ${{ env.BEAT_MODULE }} && mage build - name: Run test diff --git a/.github/workflows/macos-packetbeat.yml b/.github/workflows/macos-packetbeat.yml index b69919c2ea7..a02562531bb 100644 --- a/.github/workflows/macos-packetbeat.yml +++ b/.github/workflows/macos-packetbeat.yml @@ -14,13 +14,14 @@ jobs: macos: runs-on: macos-latest steps: - - name: Set up Go - uses: actions/setup-go@v2 + - uses: actions/checkout@v2 + - name: Fetch Go version from .go-version + run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV + - uses: actions/setup-go@v2 with: - go-version: '1.17.5' + go-version: ${{ env.GO_VERSION }} - name: Install dependencies run: go get -u github.com/magefile/mage - - uses: actions/checkout@v2 - name: Run build run: cd ${{ env.BEAT_MODULE }} && mage build - name: Run test diff --git a/.github/workflows/macos-xpack-auditbeat.yml b/.github/workflows/macos-xpack-auditbeat.yml index 36ffc5d291e..09479d9ae79 100644 --- a/.github/workflows/macos-xpack-auditbeat.yml +++ b/.github/workflows/macos-xpack-auditbeat.yml @@ -14,13 +14,14 @@ jobs: macos: runs-on: macos-latest steps: - - name: Set up Go - uses: actions/setup-go@v2 + - uses: actions/checkout@v2 + - name: Fetch Go version from .go-version + run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV + - uses: actions/setup-go@v2 with: - go-version: '1.17.5' + go-version: ${{ env.GO_VERSION }} - name: Install dependencies run: go get -u github.com/magefile/mage - - uses: actions/checkout@v2 - name: Run build run: cd ${{ env.BEAT_MODULE }} && mage build - name: Run test diff --git a/.github/workflows/macos-xpack-filebeat.yml b/.github/workflows/macos-xpack-filebeat.yml index dabe04d7cce..b9f320f14a1 100644 --- a/.github/workflows/macos-xpack-filebeat.yml +++ b/.github/workflows/macos-xpack-filebeat.yml @@ -14,13 +14,14 @@ jobs: macos: runs-on: macos-latest steps: - - name: Set up Go - uses: actions/setup-go@v2 + - uses: actions/checkout@v2 + - name: Fetch Go version from .go-version + run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV + - uses: actions/setup-go@v2 with: - go-version: '1.17.5' + go-version: ${{ env.GO_VERSION }} - name: Install dependencies run: go get -u github.com/magefile/mage - - uses: actions/checkout@v2 - name: Run build run: cd ${{ env.BEAT_MODULE }} && mage build - name: Run test diff --git a/.github/workflows/macos-xpack-functionbeat.yml b/.github/workflows/macos-xpack-functionbeat.yml index ef0c410bfcd..f3efcd68c2d 100644 --- a/.github/workflows/macos-xpack-functionbeat.yml +++ b/.github/workflows/macos-xpack-functionbeat.yml @@ -14,13 +14,14 @@ jobs: macos: runs-on: macos-latest steps: - - name: Set up Go - uses: actions/setup-go@v2 + - uses: actions/checkout@v2 + - name: Fetch Go version from .go-version + run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV + - uses: actions/setup-go@v2 with: - go-version: '1.17.5' + go-version: ${{ env.GO_VERSION }} - name: Install dependencies run: go get -u github.com/magefile/mage - - uses: actions/checkout@v2 - name: Run build run: cd ${{ env.BEAT_MODULE }} && mage build - name: Run test diff --git a/.github/workflows/macos-xpack-heartbeat.yml b/.github/workflows/macos-xpack-heartbeat.yml index 7e0eaa08512..a4434c8d98e 100644 --- a/.github/workflows/macos-xpack-heartbeat.yml +++ b/.github/workflows/macos-xpack-heartbeat.yml @@ -14,13 +14,14 @@ jobs: macos: runs-on: macos-latest steps: - - name: Set up Go - uses: actions/setup-go@v2 + - uses: actions/checkout@v2 + - name: Fetch Go version from .go-version + run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV + - uses: actions/setup-go@v2 with: - go-version: '1.17.5' + go-version: ${{ env.GO_VERSION }} - name: Install dependencies run: go get -u github.com/magefile/mage - - uses: actions/checkout@v2 - name: Run build run: cd ${{ env.BEAT_MODULE }} && mage build - name: Run test diff --git a/.github/workflows/macos-xpack-metricbeat.yml b/.github/workflows/macos-xpack-metricbeat.yml index 9212ae97a00..c17bd95ea15 100644 --- a/.github/workflows/macos-xpack-metricbeat.yml +++ b/.github/workflows/macos-xpack-metricbeat.yml @@ -14,13 +14,14 @@ jobs: macos: runs-on: macos-latest steps: - - name: Set up Go - uses: actions/setup-go@v2 + - uses: actions/checkout@v2 + - name: Fetch Go version from .go-version + run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV + - uses: actions/setup-go@v2 with: - go-version: '1.17.5' + go-version: ${{ env.GO_VERSION }} - name: Install dependencies run: go get -u github.com/magefile/mage - - uses: actions/checkout@v2 - name: Run build run: cd ${{ env.BEAT_MODULE }} && mage build - name: Run test diff --git a/.github/workflows/macos-xpack-osquerybeat.yml b/.github/workflows/macos-xpack-osquerybeat.yml index 7e0eaa08512..a4434c8d98e 100644 --- a/.github/workflows/macos-xpack-osquerybeat.yml +++ b/.github/workflows/macos-xpack-osquerybeat.yml @@ -14,13 +14,14 @@ jobs: macos: runs-on: macos-latest steps: - - name: Set up Go - uses: actions/setup-go@v2 + - uses: actions/checkout@v2 + - name: Fetch Go version from .go-version + run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV + - uses: actions/setup-go@v2 with: - go-version: '1.17.5' + go-version: ${{ env.GO_VERSION }} - name: Install dependencies run: go get -u github.com/magefile/mage - - uses: actions/checkout@v2 - name: Run build run: cd ${{ env.BEAT_MODULE }} && mage build - name: Run test diff --git a/.github/workflows/macos-xpack-packetbeat.yml b/.github/workflows/macos-xpack-packetbeat.yml index 9212ae97a00..c17bd95ea15 100644 --- a/.github/workflows/macos-xpack-packetbeat.yml +++ b/.github/workflows/macos-xpack-packetbeat.yml @@ -14,13 +14,14 @@ jobs: macos: runs-on: macos-latest steps: - - name: Set up Go - uses: actions/setup-go@v2 + - uses: actions/checkout@v2 + - name: Fetch Go version from .go-version + run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV + - uses: actions/setup-go@v2 with: - go-version: '1.17.5' + go-version: ${{ env.GO_VERSION }} - name: Install dependencies run: go get -u github.com/magefile/mage - - uses: actions/checkout@v2 - name: Run build run: cd ${{ env.BEAT_MODULE }} && mage build - name: Run test