fix(ci): remove redundant workflow_dispatch — push already triggers build
trigger-desktop.yml was pushing a submodule bump commit (which fires release.yml via the push event) AND then explicitly dispatching release.yml via the API, causing every cinny push to produce two back-to-back desktop builds. Drop the dispatch step; the push alone is sufficient. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -22,20 +22,8 @@ jobs:
|
||||
git -C cinny checkout "$CINNY_SHA"
|
||||
git add cinny
|
||||
if git diff --cached --quiet; then
|
||||
echo "Submodule already at $CINNY_SHA"
|
||||
echo "Submodule already at $CINNY_SHA, nothing to do"
|
||||
else
|
||||
git commit -m "chore: bump cinny submodule to ${CINNY_SHA:0:8}"
|
||||
git push origin main
|
||||
fi
|
||||
|
||||
- name: Dispatch cinny-desktop release build
|
||||
env:
|
||||
TOKEN: ${{ secrets.ACTIONS_TOKEN }}
|
||||
run: |
|
||||
HTTP=$(curl -s -o /tmp/resp.txt -w "%{http_code}" -X POST \
|
||||
"https://code.lotusguild.org/api/v1/repos/LotusGuild/cinny-desktop/actions/workflows/release.yml/dispatches" \
|
||||
-H "Authorization: token $TOKEN" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"ref":"main"}')
|
||||
echo "HTTP $HTTP: $(cat /tmp/resp.txt)"
|
||||
[ "$HTTP" = "204" ] || [ "$HTTP" = "200" ] || { echo "Dispatch failed"; exit 1; }
|
||||
|
||||
Reference in New Issue
Block a user