Skip to content

[f40] fix: only run backport action if merged (#1054) #152

[f40] fix: only run backport action if merged (#1054)

[f40] fix: only run backport action if merged (#1054) #152

Workflow file for this run

name: Automatic backport/sync action
on:
pull_request_target:
types: ["labeled", "closed"]
jobs:
backport:
name: Backport/sync PR
runs-on: ubuntu-latest
if: github.event.pull_request.merged
steps:
- name: Backport Action
uses: sorenlouv/[email protected]
with:
github_token: ${{ secrets.RABONEKO_BACKPORT_GITHUB_TOKEN }}
auto_backport_label_prefix: sync-
- name: Info log
if: ${{ success() }}
run: cat ~/.backport/backport.info.log
- name: Debug log
if: ${{ failure() }}
run: cat ~/.backport/backport.debug.log