From 1eeb722198930248a0be309e220043b78d56b336 Mon Sep 17 00:00:00 2001 From: Denis Date: Fri, 13 Dec 2024 10:08:38 +0100 Subject: [PATCH] Run agent test version bump on all active branches (#6309) Before we had to manually trigger the update version automation for all branches other than `main`. --- .github/workflows/bump-agent-versions.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bump-agent-versions.yml b/.github/workflows/bump-agent-versions.yml index a3d77f077d9..a58bc50dcaf 100644 --- a/.github/workflows/bump-agent-versions.yml +++ b/.github/workflows/bump-agent-versions.yml @@ -7,16 +7,31 @@ on: - cron: "0 0 * * *" jobs: + filter: + runs-on: ubuntu-latest + timeout-minutes: 1 + outputs: + matrix: ${{ steps.generator.outputs.matrix }} + steps: + - id: generator + uses: elastic/oblt-actions/elastic/active-branches@v1 + with: + exclude-branches: "7.17" + update_versions: runs-on: ubuntu-latest + needs: [filter] permissions: contents: write pull-requests: write + strategy: + matrix: ${{ fromJson(needs.filter.outputs.matrix) }} steps: - - name: Checkout uses: actions/checkout@v4 with: + ref: "${{ matrix.branch }}" + # no depth limit # so, we can generate snapshot versions based on release branches fetch-depth: 0