Fix commands
This commit is contained in:
parent
365bf5bf96
commit
72b1cda7d1
|
@ -184,10 +184,10 @@ jobs:
|
||||||
cd packages/pro
|
cd packages/pro
|
||||||
pro_commit=$(git rev-parse HEAD)
|
pro_commit=$(git rev-parse HEAD)
|
||||||
|
|
||||||
branch=${{ github.base_ref || github.ref_name }}
|
branch="${{ github.base_ref || github.ref_name }}"
|
||||||
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_commit=$(git rev-parse origin/master)
|
||||||
else
|
else
|
||||||
base_commit=$(git rev-parse origin/develop)
|
base_commit=$(git rev-parse origin/develop)
|
||||||
|
|
Loading…
Reference in New Issue