Skip to content

Commit

Permalink
new test
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronfigueiredo committed Apr 29, 2024
1 parent f979850 commit a177428
Showing 1 changed file with 21 additions and 17 deletions.
38 changes: 21 additions & 17 deletions .github/workflows/create-cherry-pick-pr.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
name: Cherry Pick Commit

on:
workflow_dispatch:
inputs:
branch_name:
description: 'Branch name you want the cherry-pick branch to be based from'
required: true
commit_hash:
description: 'Commit Hash'
required: true
PR_number:
description: 'PR # Associated with Cherry Pick'
required: true
# workflow_dispatch:
# inputs:
# branch_name:
# description: 'Branch name you want the cherry-pick branch to be based from'
# required: true
# commit_hash:
# description: 'Commit Hash'
# required: true
# PR_number:
# description: 'PR # Associated with Cherry Pick'
# required: true
pull_request:
types: [opened, synchronize, reopened]

jobs:
cherry-pick:
Expand All @@ -20,11 +22,13 @@ jobs:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v3
with:
ref: ${{ vars.GITHUB_REF }}
fetch-depth: 0
token: ${{ secrets.BUG_REPORT_TOKEN }}
- name: Checkout code
uses: actions/checkout@v4
# - uses: actions/checkout@v4
# with:
# ref: ${{ vars.GITHUB_REF }}
# fetch-depth: 0
# token: ${{ secrets.BUG_REPORT_TOKEN }}
- name: Get Node.js version
id: nvm
run: echo "NODE_VERSION=$(cat .nvmrc)" >> "$GITHUB_OUTPUT"
Expand All @@ -37,4 +41,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./.github/scripts/create-cherry-pick-pr.sh ${{ github.event.inputs.branch_name }} ${{ github.event.inputs.commit_hash }} ${{ github.event.inputs.PR_number }}
./.github/scripts/create-cherry-pick-pr.sh Version-v11.15.0 378bb27 24171

0 comments on commit a177428

Please sign in to comment.