Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

ci: ensure release tags come from main history

johaven9c044b2538fa
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index b6564d53..acbe3f86 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -14,6 +14,13 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+
+ - name: Ensure release tag commit is in main history
+ run: |
+ git fetch origin main:refs/remotes/origin/main
+ git merge-base --is-ancestor "${GITHUB_REF}^{commit}" origin/main
- name: Set up Node.js
uses: actions/setup-node@v4