Skip to content

Commit

Permalink
Copy dependencies label for dependencies PRs (#12682)
Browse files Browse the repository at this point in the history
  • Loading branch information
jyejare authored Sep 22, 2023
1 parent 757f2a6 commit f7dd905
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/auto_cherry_pick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ env:
assignee: ${{ github.event.pull_request.assignee.login }}
title: ${{ github.event.pull_request.title }}
number: ${{ github.event.number }}
is_dependabot_pr: ''

jobs:

Expand Down Expand Up @@ -52,6 +53,12 @@ jobs:
with:
fetch-depth: 0

## Set env var for dependencies label PR
- name: Set env var is_dependabot_pr to `dependencies` to set the label
if: contains(github.event.pull_request.labels.*.name, 'dependencies')
run: |
echo "is_dependabot_pr=dependencies" >> $GITHUB_ENV
## CherryPicking and AutoMerging
- name: Cherrypicking to zStream branch
id: cherrypick
Expand All @@ -64,6 +71,7 @@ jobs:
Auto_Cherry_Picked
${{ matrix.label }}
No-CherryPick
${{ env.is_dependabot_pr }}
assignees: ${{ env.assignee }}

- name: Add Parent PR's PRT comment to Auto_Cherry_Picked PR's
Expand Down

0 comments on commit f7dd905

Please sign in to comment.