summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2026-06-14 01:28:16 -0300
committerGitHub <noreply@github.com>2026-06-14 01:28:16 -0300
commit2d7c72a4021f78edaac0dc082214fc7d01058fd3 (patch)
tree11e63d47546617ba7192a167381e1a9fe03b59c0
parent9db9e80ed1184678c06384928b909b6ca6b52bb7 (diff)
parent9206a576fc827de96402ad1ce43e35a59a60b462 (diff)
downloadmeta-freescale-2d7c72a4021f78edaac0dc082214fc7d01058fd3.tar.gz
Merge pull request #2531 from otavio/modernise-backport-workflow
backport: Modernise the backport workflow
-rw-r--r--.github/workflows/backport.yaml31
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 @@
1name: Backport labeled merged pull requests 1name: Backport merged pull requests
2on: 2on:
3 pull_request_target: 3 pull_request_target:
4 types: [closed] 4 types: [closed, labeled]
5
6permissions:
7 contents: write
8 pull-requests: write
9
5jobs: 10jobs:
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 }}