Skip to content

Commit ac3ca47

Browse files
v1vchrisberkhout
authored andcommitted
actions: use go-version-file: .go-version (#33879)
see actions/setup-go#295
1 parent 56e2333 commit ac3ca47

33 files changed

+33
-102
lines changed

.github/workflows/check-audtibeat.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v3
18-
- name: Fetch Go version from .go-version
19-
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
2018
- uses: actions/setup-go@v3
2119
with:
22-
go-version: ${{ env.GO_VERSION }}
20+
go-version-file: .go-version
2321
- name: Run check/update
2422
run: |
2523
go install github.com/magefile/mage

.github/workflows/check-default.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v3
20-
- name: Fetch Go version from .go-version
21-
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
2220
- uses: actions/setup-go@v3
2321
with:
24-
go-version: ${{ env.GO_VERSION }}
22+
go-version-file: .go-version
2523
- name: Run check-default
2624
run: |
2725
go install github.com/magefile/mage

.github/workflows/check-dev-tools.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v3
18-
- name: Fetch Go version from .go-version
19-
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
2018
- uses: actions/setup-go@v3
2119
with:
22-
go-version: ${{ env.GO_VERSION }}
20+
go-version-file: .go-version
2321
- name: Run check/update
2422
run: |
2523
go install github.com/magefile/mage

.github/workflows/check-docs.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v3
20-
- name: Fetch Go version from .go-version
21-
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
2220
- uses: actions/setup-go@v3
2321
with:
24-
go-version: ${{ env.GO_VERSION }}
22+
go-version-file: .go-version
2523
- name: Install libpcap-dev
2624
run: sudo apt-get install -y libpcap-dev
2725
- name: Install libsystemd-dev

.github/workflows/check-filebeat.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v3
18-
- name: Fetch Go version from .go-version
19-
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
2018
- uses: actions/setup-go@v3
2119
with:
22-
go-version: ${{ env.GO_VERSION }}
20+
go-version-file: .go-version
2321
- name: Install libsystemd-dev
2422
run: sudo apt-get install -y libsystemd-dev
2523
- name: Run check/update

.github/workflows/check-heartbeat.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v3
18-
- name: Fetch Go version from .go-version
19-
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
2018
- uses: actions/setup-go@v3
2119
with:
22-
go-version: ${{ env.GO_VERSION }}
20+
go-version-file: .go-version
2321
- name: Run check/update
2422
run: |
2523
go install github.com/magefile/mage

.github/workflows/check-libbeat.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v3
18-
- name: Fetch Go version from .go-version
19-
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
2018
- uses: actions/setup-go@v3
2119
with:
22-
go-version: ${{ env.GO_VERSION }}
20+
go-version-file: .go-version
2321
- name: Install libpcap-dev
2422
run: sudo apt-get install -y libpcap-dev
2523
- name: Run check/update

.github/workflows/check-metricbeat.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v3
18-
- name: Fetch Go version from .go-version
19-
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
2018
- uses: actions/setup-go@v3
2119
with:
22-
go-version: ${{ env.GO_VERSION }}
20+
go-version-file: .go-version
2321
- name: Run check/update
2422
run: |
2523
go install github.com/magefile/mage

.github/workflows/check-packetbeat.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v3
18-
- name: Fetch Go version from .go-version
19-
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
2018
- uses: actions/setup-go@v3
2119
with:
22-
go-version: ${{ env.GO_VERSION }}
20+
go-version-file: .go-version
2321
- name: Install libpcap-dev
2422
run: sudo apt-get install -y libpcap-dev
2523
- name: Run check/update

.github/workflows/check-winlogbeat.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v3
18-
- name: Fetch Go version from .go-version
19-
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
2018
- uses: actions/setup-go@v3
2119
with:
22-
go-version: ${{ env.GO_VERSION }}
20+
go-version-file: .go-version
2321
- name: Run check/update
2422
run: |
2523
go install github.com/magefile/mage

0 commit comments

Comments
 (0)