Skip to content

Optimize backport.yml (#1403) #764

Optimize backport.yml (#1403)

Optimize backport.yml (#1403) #764

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / Backport changes to maintenance branches

Invalid workflow file

The workflow is not valid. .github/workflows/backport.yml (Line: 16, Col: 17): Unrecognized named-value: 'env'. Located at position 10 within expression: fromJSON(env.MAINTENANCE_BRANCHES) .github/workflows/backport.yml (Line: 16, Col: 17): Unexpected value '${{ fromJSON(env.MAINTENANCE_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:
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