Skip to content

[Backport case4-target-branches] test: add a line #13

[Backport case4-target-branches] test: add a line

[Backport case4-target-branches] test: add a line #13

name: Backport on issue_comment[created]
on:
issue_comment:
types: [created]
permissions:
contents: write # so it can comment
pull-requests: write # so it can create pull requests
jobs:
backport:
name: Backport
runs-on: ubuntu-latest
# Only run on comment containing `/backport`
if: >
github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
contains(github.event.comment.body, '/backport')
steps:
- uses: actions/checkout@v3
- name: Backport
id: backport
uses: korthout/backport-action@341-default-mainline
with:
# copy_labels_pattern: .+
target_branches: case4-target-branches
default_mainline: 1
- name: Print was_successful output
run: echo "${{ steps.backport.outputs.was_successful }}"
- name: Print was_successful_by_target output
run: echo "${{ steps.backport.outputs.was_successful_by_target }}"