Skip to content

Commit 6ea85a6

Browse files
authored
github-actions: updatecli bump for specific branches (#8466)
1 parent fa0f5d1 commit 6ea85a6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/bump-vm-images.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ jobs:
4141
matrix: ${{ fromJson(needs.filter.outputs.matrix) }}
4242
steps:
4343
- uses: actions/checkout@v4
44+
with:
45+
# NOTE: as long as the updatecli bump differs between branches, we need to
46+
# checkout the branch that we are going to bump that we are going to bump
47+
# this is needed to ensure that the updatecli bump is done against the correct updatecli
48+
# pipeline. For instance, https://github.com/elastic/elastic-agent/pull/8035 was not
49+
# backported to the short lived branches.
50+
ref: ${{ matrix.branch }}
4451

4552
- uses: elastic/oblt-actions/updatecli/run@v1
4653
with:
@@ -54,4 +61,4 @@ jobs:
5461
with:
5562
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
5663
channel-id: "#ingest-notifications"
57-
message: ":traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, @robots-ci please look what's going on <${{ env.JOB_URL }}|here>"
64+
message: ":traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`[${{ matrix.branch }}], @robots-ci please look what's going on <${{ env.JOB_URL }}|here>"

0 commit comments

Comments
 (0)