Skip to content

Commit

Permalink
Revert "Optimize backport.yml (#1403)"
Browse files Browse the repository at this point in the history
This reverts commit 8e4133c.
  • Loading branch information
JackPGreen authored Nov 27, 2024
1 parent 3ae33e2 commit 75e9eca
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,32 @@ on:
push:
branches:
- main

env:
MAINTENANCE_BRANCHES: "['5.3', '5.4', '5.5']"

jobs:
get-maintenance-branches:
runs-on: ubuntu-latest
outputs:
branches: "['5.3', '5.4', '5.5']"
steps:
- run: exit 0

backport-to-all-branch:
needs: get-maintenance-branches
strategy:
fail-fast: false
matrix:
branch: ${{ fromJSON(env.MAINTENANCE_BRANCHES) }}
branch: ${{ fromJSON(needs.get-maintenance-branches.outputs.branches) }}
uses: ./.github/workflows/backport-workflow.yml
with:
label-to-check-for: '["backport to all versions"]'
target-branch: v/${{ matrix.branch }}
secrets: inherit

backport-to-specified-branch:
needs: get-maintenance-branches
strategy:
fail-fast: false
matrix:
branch: ${{ fromJSON(env.MAINTENANCE_BRANCHES) }}
branch: ${{ fromJSON(needs.get-maintenance-branches.outputs.branches) }}
uses: ./.github/workflows/backport-workflow.yml
with:
label-to-check-for: '["backport to ${{ matrix.branch }}"]'
Expand Down

0 comments on commit 75e9eca

Please sign in to comment.