Skip to content

PhotoCraft: An open-source, photo editor written by scratch in pure Rust

CI: release only with git dependencies from storytold

aiongg8f9ebc3136c5
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index bfdca9e3e..4666f5a85 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -18,7 +18,21 @@ concurrency:
cancel-in-progress: false
jobs:
+ git-sources:
+ name: Git dependencies come from storytold
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ steps:
+ - uses: actions/checkout@v4
+ - name: Check Cargo.lock
+ run: |
+ if grep -E '^source = "git\+' Cargo.lock | grep -v '"git+https://github.com/storytold/'; then
+ echo "Cargo.lock has a git dependency outside github.com/storytold"; exit 1
+ fi
+
release:
+ needs: git-sources
# Intentionally tracked at @main (not SHA-pinned) so org-wide CI improvements, security fixes, and build optimizations propagate without PR churn across all craftapp repos.
uses: storytold/craft-common-actions/.github/workflows/release.yml@main
with: