Skip to content

Commit c61e99c

Browse files
committed
#147 fix more issues with pipeline
1 parent e2103f7 commit c61e99c

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/cd-release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "2. Continuous Deployment (Release)"
1+
name: "2. Continuous Deployment (Release)"
22

33
on:
44
push:
@@ -18,7 +18,14 @@ jobs:
1818
fetch-depth: 0
1919

2020
- name: Verify commit exists in origin/main
21-
run: git branch --remote --contains | grep origin/main
21+
run: |
22+
git fetch origin main
23+
if git merge-base --is-ancestor $GITHUB_SHA origin/main; then
24+
echo "✅ Commit exists in main"
25+
else
26+
echo "❌ Commit is not in main"
27+
exit 1
28+
fi
2229
2330
- name: Extract release notes
2431
run: |

0 commit comments

Comments
 (0)