Skip to content

Commit

Permalink
fixes for parsing the commit hash
Browse files Browse the repository at this point in the history
  • Loading branch information
vinnybod committed Aug 2, 2023
1 parent 4c22de7 commit 1b68d8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cherry-pick-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ jobs:
- name: Set commitHash workflow input
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
echo "COMMIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
echo "COMMIT_HASH=${{ github.event.inputs.commitHash }}" >> $GITHUB_ENV
- name: Set commitHash pull request input
if: ${{ github.event_name == 'pull_request' }}
run: |
echo "COMMIT_HASH=$(git rev-parse ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV
echo "COMMIT_HASH=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
- name: Create cherry-pick branch
run: |
git checkout -b cherry-pick-${{ env.COMMIT_HASH }}
Expand Down

0 comments on commit 1b68d8e

Please sign in to comment.