Updating pro reference checking to work for master branch.

This commit is contained in:
mike12345567 2023-09-07 10:42:07 +01:00
parent 4c3cce8277
commit 3fb67ffe4f
1 changed files with 4 additions and 2 deletions

View File

@ -225,10 +225,12 @@ jobs:
echo "Running on branch '$branch' (base_ref=${{ github.base_ref }}, ref_name=${{ github.head_ref }})" echo "Running on branch '$branch' (base_ref=${{ github.base_ref }}, ref_name=${{ github.head_ref }})"
if [[ $branch == "master" ]]; then if [[ $branch == "master" ]]; then
base_commit=$(git rev-parse origin/master) base_branch=master
else else
base_commit=$(git rev-parse origin/develop) base_branch=develop
fi fi
git fetch origin $base_branch
base_commit=$(git rev-parse $base_branch)
echo "target_branch=$branch" echo "target_branch=$branch"
echo "target_branch=$branch" >> "$GITHUB_OUTPUT" echo "target_branch=$branch" >> "$GITHUB_OUTPUT"