Optimize backport.yml (#1403) #764
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Backport changes to maintenance branches | ||
on: | ||
push: | ||
branches: | ||
- main | ||
env: | ||
MAINTENANCE_BRANCHES: "['5.3', '5.4', '5.5']" | ||
jobs: | ||
backport-to-all-branch: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
branch: ${{ fromJSON(env.MAINTENANCE_BRANCHES) }} | ||
Check failure on line 16 in .github/workflows/backport.yml GitHub Actions / Backport changes to maintenance branchesInvalid workflow file
|
||
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: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
branch: ${{ fromJSON(env.MAINTENANCE_BRANCHES) }} | ||
uses: ./.github/workflows/backport-workflow.yml | ||
with: | ||
label-to-check-for: '["backport to ${{ matrix.branch }}"]' | ||
target-branch: v/${{ matrix.branch }} | ||
secrets: inherit |