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 9b86255
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/cherry-pick.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
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 9b86255

Please # to comment.