Skip to content

Commit

Permalink
updatecli: use the branch for installing go
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Feb 5, 2024
1 parent 1c3d5f6 commit 286aad2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/update-beats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,18 @@ jobs:
fail-fast: false
matrix: ${{ fromJson(needs.filter.outputs.matrix) }}
steps:
# Checkout in a different path so it can configure go correctly
- uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}
path: "${{ matrix.branch }}"
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version-file: "./${{ matrix.branch }}/go.mod"
# Use default branch so we don't need to maintain the same updatecli pipeline
# in different branches but in main.
# This is handy as long as all the branches use the same implementation
- uses: actions/checkout@v4
- uses: elastic/apm-pipeline-library/.github/actions/updatecli@current
env:
BRANCH_NAME: ${{ matrix.branch }}
Expand Down

0 comments on commit 286aad2

Please sign in to comment.