Skip to content

ci: send notifications to teams channel #1179

ci: send notifications to teams channel

ci: send notifications to teams channel #1179

Workflow file for this run

name: backport pr
on:
pull_request:
types: [closed]
issue_comment:
types: [created]
jobs:
backport:
if: |
(
github.event_name == 'pull_request' &&
github.event.pull_request.merged
) || (
github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
startsWith(github.event.comment.body, '/backport')
)
runs-on: ubuntu-22.04
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
token: ${{ secrets.NUNKI_CI_COMMIT_PUSH_PR }}
- name: Create backport PRs
uses: korthout/backport-action@be567af183754f6a5d831ae90f648954763f17f5 # v3.1.0
with:
copy_milestone: true
copy_labels_pattern: '.*'
pull_title: '[${target_branch}] ${pull_title}'
github_token: ${{ secrets.NUNKI_CI_COMMIT_PUSH_PR }}
pull_description: |
Backport of #${pull_number} to `${target_branch}`.
Original description:
---
${pull_description}