Skip to content

Commit

Permalink
Fix bug when computing cherr-picked commits
Browse files Browse the repository at this point in the history
Fix a bug where code to compute cherry-picked commits was not running.
This was due to incorrectly assuming that a local branch would exist when
only the remote one would.

Fixes #1.

Signed-off-by: Schuyler Eldridge <[email protected]>
  • Loading branch information
seldridge committed Feb 7, 2024
1 parent 07c3291 commit 8291552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ runs:
done
cd downstream/
if [[ `git rev-parse --verify ${{ inputs.staging-branch }} 2> /dev/null` ]]; then
if [[ `git rev-parse --verify origin/${{ inputs.staging-branch }} 2> /dev/null` ]]; then
MERGE_BASE=$(git merge-base HEAD origin/${{ inputs.staging-branch }})
COMMITS=$(git rev-list --reverse $MERGE_BASE..origin/${{ inputs.staging-branch }})
for commit in $COMMITS; do
Expand Down

0 comments on commit 8291552

Please sign in to comment.