-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Pierre Delpy
committed
Aug 27, 2024
1 parent
b9f0bf7
commit 9016f51
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Backport to Feature Branch on PR Merge | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
branches: | ||
- test/backport-main | ||
|
||
jobs: | ||
backport: | ||
if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Backport changes from test/backport-main to test/backport-pilots | ||
uses: backport-org/backport-github-action@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branches: 'test/backport-pilots' # Specify your feature branch here | ||
labels: 'backport' # Optional: Add a label to the PR | ||
assignees: 'PierreDelpy' # Optional: Assign the PR to yourself or a team member | ||
title: 'Automated Backport from test/backport-main to test/backport-pilots' | ||
body: 'This PR automatically backports changes from the test/backport-main branch to the test/backport-pilots branch after a PR was merged into main.' |