diff options
| author | Otavio Salvador <otavio@ossystems.com.br> | 2026-06-14 01:28:16 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-14 01:28:16 -0300 |
| commit | 2d7c72a4021f78edaac0dc082214fc7d01058fd3 (patch) | |
| tree | 11e63d47546617ba7192a167381e1a9fe03b59c0 | |
| parent | 9db9e80ed1184678c06384928b909b6ca6b52bb7 (diff) | |
| parent | 9206a576fc827de96402ad1ce43e35a59a60b462 (diff) | |
| download | meta-freescale-2d7c72a4021f78edaac0dc082214fc7d01058fd3.tar.gz | |
Merge pull request #2531 from otavio/modernise-backport-workflow
backport: Modernise the backport workflow
| -rw-r--r-- | .github/workflows/backport.yaml | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/.github/workflows/backport.yaml b/.github/workflows/backport.yaml index cf3177704..6faabda04 100644 --- a/.github/workflows/backport.yaml +++ b/.github/workflows/backport.yaml | |||
| @@ -1,28 +1,21 @@ | |||
| 1 | name: Backport labeled merged pull requests | 1 | name: Backport merged pull requests |
| 2 | on: | 2 | on: |
| 3 | pull_request_target: | 3 | pull_request_target: |
| 4 | types: [closed] | 4 | types: [closed, labeled] |
| 5 | |||
| 6 | permissions: | ||
| 7 | contents: write | ||
| 8 | pull-requests: write | ||
| 9 | |||
| 5 | jobs: | 10 | jobs: |
| 6 | build: | 11 | backport: |
| 7 | name: Create backport PRs | 12 | name: Create backport PRs |
| 8 | runs-on: ubuntu-latest | 13 | runs-on: ubuntu-latest |
| 9 | # Only run when pull request is merged | 14 | # Run on merged PRs that carry a 'backport <branch>' label, whether the |
| 10 | # or when a comment containing `/backport` is created | 15 | # label was added before the merge or afterwards. |
| 11 | if: github.event.pull_request.merged | 16 | if: github.event.pull_request.merged |
| 12 | steps: | 17 | steps: |
| 13 | - uses: actions/checkout@v2 | 18 | - uses: actions/checkout@v4 |
| 14 | with: | 19 | with: |
| 15 | # Required to find all branches | ||
| 16 | fetch-depth: 0 | 20 | fetch-depth: 0 |
| 17 | - name: Create backport PRs | 21 | - uses: korthout/backport-action@v4 |
| 18 | # Should be kept in sync with `version` | ||
| 19 | uses: zeebe-io/backport-action@v0.0.4 | ||
| 20 | with: | ||
| 21 | # Required | ||
| 22 | # Version of the backport-action | ||
| 23 | # Must equal the version in `uses` | ||
| 24 | # Recommended: latest tag or `master` | ||
| 25 | version: v0.0.4 | ||
| 26 | |||
| 27 | github_token: ${{ secrets.GITHUB_TOKEN }} | ||
| 28 | github_workspace: ${{ github.workspace }} | ||
