Skip to content

Commit 77d4a8e

Browse files
committed
udpatecli: support bump golang for 7.17
1 parent 3971429 commit 77d4a8e

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

.ci/bump-golang.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ scms:
2727
owner: elastic
2828
repository: apm-server
2929
token: '{{ requiredEnv "GITHUB_TOKEN" }}'
30-
branch: main
30+
branch: '{{ requiredEnv "GITHUB_BRANCH" }}'
3131
commitusingapi: true
3232

3333
sources:

.github/workflows/bump-golang.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,31 @@ jobs:
2121
command: --experimental apply --config .ci/bump-golang.yml
2222
env:
2323
GITHUB_TOKEN: ${{ secrets.UPDATECLI_GH_TOKEN }}
24+
GITHUB_BRANCH: 'main'
2425

25-
- if: ${{ failure() }}
26+
bump-7:
27+
runs-on: ubuntu-latest
28+
steps:
29+
30+
- uses: actions/checkout@v4
31+
32+
- uses: elastic/oblt-actions/updatecli/[email protected]
33+
with:
34+
command: --experimental apply --config .ci/bump-golang.yml
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.UPDATECLI_GH_TOKEN }}
37+
GITHUB_BRANCH: '7.17'
38+
39+
notify:
40+
runs-on: ubuntu-latest
41+
needs: [bump, bump-7]
42+
if: always()
43+
steps:
44+
- id: check
45+
uses: elastic/apm-pipeline-library/.github/actions/check-dependent-jobs@current
46+
with:
47+
needs: ${{ toJSON(needs) }}
48+
- if: ${{ steps.check.outputs.isSuccess == 'false' }}
2649
uses: elastic/oblt-actions/slack/[email protected]
2750
with:
2851
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}

0 commit comments

Comments
 (0)