File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 8585 echo "trigger_id=null" >> "$GITHUB_OUTPUT" # Default fallback
8686 fi
8787 echo "branch=$(git name-rev --name-only $(git log -1 --format=%H) | cut -d~ -f1-1)" >> "$GITHUB_OUTPUT"
88- echo "parent_sha=$(git show-ref --heads --hash stable)" >> "$GITHUB_OUTPUT"
89- BRANCH_REF=$(git symbolic-ref HEAD 2>/dev/null || git show-ref $(git name-rev --name-only $(git log -1 --format=%H)) | cut -d\ -f2-2) ;
88+ echo "parent_sha=$(git merge-base $(git log -1 --format=%H) refs/remotes/origin/ stable)" >> "$GITHUB_OUTPUT"
89+ BRANCH_REF=$(head -n1 <( git symbolic-ref HEAD 2>/dev/null || git show-ref $(git name-rev --name-only $(git log -1 --format=%H)) | cut -d\ -f2-2) ) ;
9090 echo "branch_ref=${BRANCH_REF}" >> "$GITHUB_OUTPUT"
9191
9292 MATS :
You can’t perform that action at this time.
0 commit comments