1
0
Fork 0
mirror of synced 2024-06-30 20:10:54 +12:00
This commit is contained in:
Adria Navarro 2023-06-20 14:05:02 +01:00
parent 18ba10a273
commit 88f8849a41

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)