Compare commits
1 Commits
a9787ef041
...
a30a3d3a47
| Author | SHA1 | Date | |
|---|---|---|---|
| a30a3d3a47 |
@@ -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