Skip to content

Commit

Permalink
Cherry pick test.
Browse files Browse the repository at this point in the history
Signed-off-by: Govind Kamat <govkamat@amazon.com>
  • Loading branch information
gkamat committed Aug 23, 2023
1 parent f464abd commit 6bfbec4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 43 deletions.
38 changes: 14 additions & 24 deletions .github/workflows/cherry-pick-to-2.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,19 @@
name: Auto-create PR on branch "2"
name: PR for release branch
on:
pull_request:
push:
branches:
- main
types: ["closed"]

- gh-action-demo
jobs:
cherry_pick_2:
release_pull_request:
runs-on: ubuntu-latest
name: Cherry pick into branch "2"
if: ${{ github.event.pull_request.merged == true }}
name: release_pull_request
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cherry pick into branch "2"
uses: carloscastrojumo/github-cherry-pick-action@v1.0.1
with:
branch: 2
labels: |
cherry-pick
reviewers: |
gkamat, IanHoang
title: '[cherry-pick] {old_title}'
body: 'Cherry picking #{old_pull_request_id} onto this branch'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: checkout
uses: actions/checkout@v1
- name: Create PR to branch
uses: gorillio/github-action-cherry-pick@master
with:
pr_branch: '2'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DRY_RUN: false
19 changes: 0 additions & 19 deletions .github/workflows/create-pr.yml

This file was deleted.

0 comments on commit 6bfbec4

Please sign in to comment.