From b7cd8ba8151864d8a94492e0befea6cb96ed9e52 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 30 Nov 2022 15:30:58 +0000 Subject: [PATCH] actions: use go-version-file: .go-version (#33879) (#33886) see https://github.com/actions/setup-go/pull/295 (cherry picked from commit 01056086d67a8c285dd480d01e161e80be9013f5) Co-authored-by: Victor Martinez --- .github/workflows/check-audtibeat.yml | 4 +--- .github/workflows/check-default.yml | 4 +--- .github/workflows/check-dev-tools.yml | 4 +--- .github/workflows/check-docs.yml | 4 +--- .github/workflows/check-filebeat.yml | 4 +--- .github/workflows/check-heartbeat.yml | 4 +--- .github/workflows/check-libbeat.yml | 4 +--- .github/workflows/check-metricbeat.yml | 4 +--- .github/workflows/check-packetbeat.yml | 4 +--- .github/workflows/check-winlogbeat.yml | 4 +--- .github/workflows/check-xpack-auditbeat.yml | 4 +--- .github/workflows/check-xpack-dockerlogbeat.yml | 4 +--- .github/workflows/check-xpack-filebeat.yml | 4 +--- .github/workflows/check-xpack-functionbeat.yml | 4 +--- .github/workflows/check-xpack-heartbeat.yml | 4 +--- .github/workflows/check-xpack-libbeat.yml | 4 +--- .github/workflows/check-xpack-metricbeat.yml | 4 +--- .github/workflows/check-xpack-osquerybeat.yml | 4 +--- .github/workflows/check-xpack-packetbeat.yml | 4 +--- .github/workflows/check-xpack-winlogbeat.yml | 4 +--- .github/workflows/golangci-lint.yml | 7 +------ .github/workflows/macos-auditbeat.yml | 4 +--- .github/workflows/macos-filebeat.yml | 4 +--- .github/workflows/macos-heartbeat.yml | 4 +--- .github/workflows/macos-metricbeat.yml | 4 +--- .github/workflows/macos-packetbeat.yml | 4 +--- .github/workflows/macos-xpack-auditbeat.yml | 4 +--- .github/workflows/macos-xpack-filebeat.yml | 4 +--- .github/workflows/macos-xpack-functionbeat.yml | 4 +--- .github/workflows/macos-xpack-heartbeat.yml | 4 +--- .github/workflows/macos-xpack-metricbeat.yml | 4 +--- .github/workflows/macos-xpack-osquerybeat.yml | 4 +--- .github/workflows/macos-xpack-packetbeat.yml | 4 +--- 33 files changed, 33 insertions(+), 102 deletions(-) diff --git a/.github/workflows/check-audtibeat.yml b/.github/workflows/check-audtibeat.yml index 20e8459d557d..3941fcdd492f 100644 --- a/.github/workflows/check-audtibeat.yml +++ b/.github/workflows/check-audtibeat.yml @@ -15,11 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - name: Run check/update run: | go install github.com/magefile/mage diff --git a/.github/workflows/check-default.yml b/.github/workflows/check-default.yml index 304b5382c4a8..56bf10ab7798 100644 --- a/.github/workflows/check-default.yml +++ b/.github/workflows/check-default.yml @@ -17,11 +17,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - name: Run check-default run: | go install github.com/magefile/mage diff --git a/.github/workflows/check-dev-tools.yml b/.github/workflows/check-dev-tools.yml index df71c821a103..4f0ba423466a 100644 --- a/.github/workflows/check-dev-tools.yml +++ b/.github/workflows/check-dev-tools.yml @@ -15,11 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - name: Run check/update run: | go install github.com/magefile/mage diff --git a/.github/workflows/check-docs.yml b/.github/workflows/check-docs.yml index 4d56b80fa31e..e3207662f7c1 100644 --- a/.github/workflows/check-docs.yml +++ b/.github/workflows/check-docs.yml @@ -17,11 +17,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - name: Install libpcap-dev run: sudo apt-get install -y libpcap-dev - name: Install libsystemd-dev diff --git a/.github/workflows/check-filebeat.yml b/.github/workflows/check-filebeat.yml index 6eca3a3d97ce..aef79c3cb61c 100644 --- a/.github/workflows/check-filebeat.yml +++ b/.github/workflows/check-filebeat.yml @@ -15,11 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - name: Install libsystemd-dev run: sudo apt-get install -y libsystemd-dev - name: Run check/update diff --git a/.github/workflows/check-heartbeat.yml b/.github/workflows/check-heartbeat.yml index a0242812a527..c975398fc2b5 100644 --- a/.github/workflows/check-heartbeat.yml +++ b/.github/workflows/check-heartbeat.yml @@ -15,11 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - name: Run check/update run: | go install github.com/magefile/mage diff --git a/.github/workflows/check-libbeat.yml b/.github/workflows/check-libbeat.yml index ec76fbefbc90..0ebb45e8b2cc 100644 --- a/.github/workflows/check-libbeat.yml +++ b/.github/workflows/check-libbeat.yml @@ -15,11 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - name: Install libpcap-dev run: sudo apt-get install -y libpcap-dev - name: Run check/update diff --git a/.github/workflows/check-metricbeat.yml b/.github/workflows/check-metricbeat.yml index 54f4753531d3..452f0dbedc1c 100644 --- a/.github/workflows/check-metricbeat.yml +++ b/.github/workflows/check-metricbeat.yml @@ -15,11 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - name: Run check/update run: | go install github.com/magefile/mage diff --git a/.github/workflows/check-packetbeat.yml b/.github/workflows/check-packetbeat.yml index 847e13e503fa..d2d8db8366a0 100644 --- a/.github/workflows/check-packetbeat.yml +++ b/.github/workflows/check-packetbeat.yml @@ -15,11 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - name: Install libpcap-dev run: sudo apt-get install -y libpcap-dev - name: Run check/update diff --git a/.github/workflows/check-winlogbeat.yml b/.github/workflows/check-winlogbeat.yml index 41d7b95c0dd9..e048d585fa8b 100644 --- a/.github/workflows/check-winlogbeat.yml +++ b/.github/workflows/check-winlogbeat.yml @@ -15,11 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - name: Run check/update run: | go install github.com/magefile/mage diff --git a/.github/workflows/check-xpack-auditbeat.yml b/.github/workflows/check-xpack-auditbeat.yml index 1902de3942e4..eed9628eb622 100644 --- a/.github/workflows/check-xpack-auditbeat.yml +++ b/.github/workflows/check-xpack-auditbeat.yml @@ -15,11 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - name: Install librpm-dev run: sudo apt-get install -y librpm-dev - name: Run check/update diff --git a/.github/workflows/check-xpack-dockerlogbeat.yml b/.github/workflows/check-xpack-dockerlogbeat.yml index e0b64b7847e6..44760e6c5e62 100644 --- a/.github/workflows/check-xpack-dockerlogbeat.yml +++ b/.github/workflows/check-xpack-dockerlogbeat.yml @@ -15,11 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - name: Run check/update run: | go install github.com/magefile/mage diff --git a/.github/workflows/check-xpack-filebeat.yml b/.github/workflows/check-xpack-filebeat.yml index cd63315b0cd8..69a8f33669a9 100644 --- a/.github/workflows/check-xpack-filebeat.yml +++ b/.github/workflows/check-xpack-filebeat.yml @@ -15,11 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - name: Install libpcap-dev run: sudo apt-get install -y libpcap-dev - name: Run check/update diff --git a/.github/workflows/check-xpack-functionbeat.yml b/.github/workflows/check-xpack-functionbeat.yml index 5ce27961a219..089828088d62 100644 --- a/.github/workflows/check-xpack-functionbeat.yml +++ b/.github/workflows/check-xpack-functionbeat.yml @@ -15,11 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - name: Run check/update run: | go install github.com/magefile/mage diff --git a/.github/workflows/check-xpack-heartbeat.yml b/.github/workflows/check-xpack-heartbeat.yml index 8a3eceb499ea..c9b77cbebb38 100644 --- a/.github/workflows/check-xpack-heartbeat.yml +++ b/.github/workflows/check-xpack-heartbeat.yml @@ -15,11 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - name: Run check/update run: | go install github.com/magefile/mage diff --git a/.github/workflows/check-xpack-libbeat.yml b/.github/workflows/check-xpack-libbeat.yml index 4428b8ad9008..11359887ef04 100644 --- a/.github/workflows/check-xpack-libbeat.yml +++ b/.github/workflows/check-xpack-libbeat.yml @@ -15,11 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - name: Run check/update run: | go install github.com/magefile/mage diff --git a/.github/workflows/check-xpack-metricbeat.yml b/.github/workflows/check-xpack-metricbeat.yml index e3bd576c386f..f61967a5eec3 100644 --- a/.github/workflows/check-xpack-metricbeat.yml +++ b/.github/workflows/check-xpack-metricbeat.yml @@ -15,11 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - name: Run check/update run: | go install github.com/magefile/mage diff --git a/.github/workflows/check-xpack-osquerybeat.yml b/.github/workflows/check-xpack-osquerybeat.yml index b97ec5905262..e5c87bcf5bd6 100644 --- a/.github/workflows/check-xpack-osquerybeat.yml +++ b/.github/workflows/check-xpack-osquerybeat.yml @@ -15,11 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - name: Run check/update run: | go install github.com/magefile/mage diff --git a/.github/workflows/check-xpack-packetbeat.yml b/.github/workflows/check-xpack-packetbeat.yml index 5469bdaf80ee..c3f847786c38 100644 --- a/.github/workflows/check-xpack-packetbeat.yml +++ b/.github/workflows/check-xpack-packetbeat.yml @@ -15,11 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - name: Install libpcap-dev run: sudo apt-get install -y libpcap-dev - name: Run check/update diff --git a/.github/workflows/check-xpack-winlogbeat.yml b/.github/workflows/check-xpack-winlogbeat.yml index 3a18353df6b5..8656675c3a14 100644 --- a/.github/workflows/check-xpack-winlogbeat.yml +++ b/.github/workflows/check-xpack-winlogbeat.yml @@ -15,11 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - name: Run check/update uses: magefile/mage-action@v2 with: diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 981aceb49e6b..82a04024ba7e 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -28,14 +28,9 @@ jobs: - uses: actions/checkout@v3 - # Uses Go version from the repository. - - name: Read .go-version file - id: goversion - run: echo "::set-output name=version::$(cat .go-version)" - - uses: actions/setup-go@v3 with: - go-version: "${{ steps.goversion.outputs.version }}" + go-version-file: .go-version - name: golangci-lint env: diff --git a/.github/workflows/macos-auditbeat.yml b/.github/workflows/macos-auditbeat.yml index 3d01b6bc4e52..994ca6dbebc0 100644 --- a/.github/workflows/macos-auditbeat.yml +++ b/.github/workflows/macos-auditbeat.yml @@ -18,11 +18,9 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v2 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - uses: actions/setup-python@v4 with: python-version: '3.9' diff --git a/.github/workflows/macos-filebeat.yml b/.github/workflows/macos-filebeat.yml index 2c5d6b8c181f..6b43f5bb6c66 100644 --- a/.github/workflows/macos-filebeat.yml +++ b/.github/workflows/macos-filebeat.yml @@ -18,11 +18,9 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v2 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - uses: actions/setup-python@v4 with: python-version: '3.9' diff --git a/.github/workflows/macos-heartbeat.yml b/.github/workflows/macos-heartbeat.yml index a3d612537a20..c8e346a44026 100644 --- a/.github/workflows/macos-heartbeat.yml +++ b/.github/workflows/macos-heartbeat.yml @@ -18,11 +18,9 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v2 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - uses: actions/setup-python@v4 with: python-version: '3.9' diff --git a/.github/workflows/macos-metricbeat.yml b/.github/workflows/macos-metricbeat.yml index 56c3100ac5ca..59a225e16015 100644 --- a/.github/workflows/macos-metricbeat.yml +++ b/.github/workflows/macos-metricbeat.yml @@ -18,11 +18,9 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v2 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - uses: actions/setup-python@v4 with: python-version: '3.9' diff --git a/.github/workflows/macos-packetbeat.yml b/.github/workflows/macos-packetbeat.yml index d9e89368543a..be5dc7377e6a 100644 --- a/.github/workflows/macos-packetbeat.yml +++ b/.github/workflows/macos-packetbeat.yml @@ -18,11 +18,9 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v2 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - uses: actions/setup-python@v4 with: python-version: '3.9' diff --git a/.github/workflows/macos-xpack-auditbeat.yml b/.github/workflows/macos-xpack-auditbeat.yml index 5da201dfa615..3adcb46f6da0 100644 --- a/.github/workflows/macos-xpack-auditbeat.yml +++ b/.github/workflows/macos-xpack-auditbeat.yml @@ -18,11 +18,9 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v2 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - uses: actions/setup-python@v4 with: python-version: '3.9' diff --git a/.github/workflows/macos-xpack-filebeat.yml b/.github/workflows/macos-xpack-filebeat.yml index ae7c0c4f35d6..936c0913fa46 100644 --- a/.github/workflows/macos-xpack-filebeat.yml +++ b/.github/workflows/macos-xpack-filebeat.yml @@ -18,11 +18,9 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v2 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - uses: actions/setup-python@v4 with: python-version: '3.9' diff --git a/.github/workflows/macos-xpack-functionbeat.yml b/.github/workflows/macos-xpack-functionbeat.yml index d20c714a489d..26a3e311c922 100644 --- a/.github/workflows/macos-xpack-functionbeat.yml +++ b/.github/workflows/macos-xpack-functionbeat.yml @@ -18,11 +18,9 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v2 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - uses: actions/setup-python@v4 with: python-version: '3.9' diff --git a/.github/workflows/macos-xpack-heartbeat.yml b/.github/workflows/macos-xpack-heartbeat.yml index fcbc5e9b4762..502d10c1a3ea 100644 --- a/.github/workflows/macos-xpack-heartbeat.yml +++ b/.github/workflows/macos-xpack-heartbeat.yml @@ -18,11 +18,9 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v2 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - uses: actions/setup-python@v4 with: python-version: '3.9' diff --git a/.github/workflows/macos-xpack-metricbeat.yml b/.github/workflows/macos-xpack-metricbeat.yml index 330bd1e48e47..38f40b051bcf 100644 --- a/.github/workflows/macos-xpack-metricbeat.yml +++ b/.github/workflows/macos-xpack-metricbeat.yml @@ -18,11 +18,9 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v2 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - uses: actions/setup-python@v4 with: python-version: '3.9' diff --git a/.github/workflows/macos-xpack-osquerybeat.yml b/.github/workflows/macos-xpack-osquerybeat.yml index af7a58dd8ab5..1b3be3e31484 100644 --- a/.github/workflows/macos-xpack-osquerybeat.yml +++ b/.github/workflows/macos-xpack-osquerybeat.yml @@ -18,11 +18,9 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v2 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - uses: actions/setup-python@v4 with: python-version: '3.9' diff --git a/.github/workflows/macos-xpack-packetbeat.yml b/.github/workflows/macos-xpack-packetbeat.yml index 163f6a9aaa84..90d9f77e2691 100644 --- a/.github/workflows/macos-xpack-packetbeat.yml +++ b/.github/workflows/macos-xpack-packetbeat.yml @@ -18,11 +18,9 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v2 - - name: Fetch Go version from .go-version - run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: .go-version - uses: actions/setup-python@v4 with: python-version: '3.9'