We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2103f7 commit c61e99cCopy full SHA for c61e99c
1 file changed
.github/workflows/cd-release.yml
@@ -1,4 +1,4 @@
1
-name: "2. Continuous Deployment (Release)"
+name: "2. Continuous Deployment (Release)"
2
3
on:
4
push:
@@ -18,7 +18,14 @@ jobs:
18
fetch-depth: 0
19
20
- name: Verify commit exists in origin/main
21
- run: git branch --remote --contains | grep origin/main
+ 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
29
30
- name: Extract release notes
31
run: |
0 commit comments