This commit is contained in:
Adria Navarro 2023-06-20 14:05:02 +01:00
parent 18ba10a273
commit 88f8849a41
1 changed files with 5 additions and 4 deletions

View File

@ -146,13 +146,14 @@ jobs:
cd packages/pro
pro_commit=$(git rev-parse HEAD)
branch=${{ github.head_ref || github.ref_name }}
branch=${{ github.base_ref || github.head_ref || github.ref_name }}
echo "branch=$branch"
echo "head_ref=$github.head_ref"
echo "ref_name=$github.ref_name"
echo "base_ref=${{ github.base_ref }}"
echo "head_ref=${{ github.head_ref }}"
echo "ref_name=${{ github.head_ref }}""
echo "Running on branch ${{ github.ref }}
if [[ "${{ github.ref }}" == "refs/heads/master" ]]; then
if [[ "$branch" == "master" ]]; then
latest_commit=$(git rev-parse origin/master)
else
latest_commit=$(git rev-parse origin/develop)