Skip to content

Commit

Permalink
Set workflow to trigger on closed/merged PR
Browse files Browse the repository at this point in the history
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
  • Loading branch information
vishnoianil committed Oct 2, 2024
1 parent 3544529 commit e3616fd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/cherry-pick.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
name: Cherry pick PR to release-1.0 branch

on:
pull_request_target:
pull_request:
branches:
- main
types: ["closed", "labeled"]

permissions: write-all

jobs:
cherry_pick_release_1_0:
runs-on: ubuntu-latest
name: Cherry pick PR to release-1.0 branch
if: ${{ contains(github.event.pull_request.labels.*.name, 'cherry-pick-release-1.0') && github.event.pull_request.merged == true }}
if: ${{ contains(github.event.pull_request.labels.*.name, 'cherry-pick-release-1.0') }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit e3616fd

Please # to comment.