f15c4caf97
Pushing to cinny-desktop main already fires release.yml via on:push. The explicit API dispatch call was redundant, caused double-job runs, and failed with 401 when the temporary admin token expired. Removed. DISPATCH_TOKEN secret is no longer needed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
31 lines
976 B
YAML
31 lines
976 B
YAML
name: Trigger Desktop Build
|
|
|
|
on:
|
|
push:
|
|
branches: [lotus]
|
|
|
|
jobs:
|
|
trigger:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Bump cinny submodule
|
|
env:
|
|
TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
|
run: |
|
|
CINNY_SHA="${{ github.sha }}"
|
|
git clone "https://x-access-token:$TOKEN@code.lotusguild.org/LotusGuild/cinny-desktop.git" desktop
|
|
cd desktop
|
|
git config user.email "ci@lotusguild.org"
|
|
git config user.name "Lotus CI"
|
|
git submodule update --init cinny
|
|
git -C cinny fetch origin
|
|
git -C cinny checkout "$CINNY_SHA"
|
|
git add cinny
|
|
if git diff --cached --quiet; then
|
|
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
|
|
echo "Pushed — cinny-desktop release.yml will start via on:push trigger"
|
|
fi
|