Skip to content

Commit 19d38db

Browse files
[PATCH] Minor tweak for CI/CD (- WIP #338 -)
Changes in file .github/workflows/CI-MATs.yml: * improved parsing of dynamic output values * related work
1 parent e13a4ad commit 19d38db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/CI-MATs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ jobs:
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:

0 commit comments

Comments
 (0)