ci: push bark
This commit is contained in:
@@ -45,3 +45,30 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
docker images | grep opencode-custom
|
docker images | grep opencode-custom
|
||||||
docker run --rm opencode-custom:latest --version
|
docker run --rm opencode-custom:latest --version
|
||||||
|
|
||||||
|
- name: Notify release via Bark
|
||||||
|
if: always()
|
||||||
|
run: |
|
||||||
|
TITLE="${{ github.ref_name }}"
|
||||||
|
STATUS="${{ job.status }}"
|
||||||
|
if [ "${STATUS}" = "success" ]; then
|
||||||
|
EMOJI="✅"
|
||||||
|
else
|
||||||
|
EMOJI="❌"
|
||||||
|
fi
|
||||||
|
BODY="${EMOJI} opencode-custom:latest build ${TITLE} ${STATUS}"
|
||||||
|
PAYLOAD=$(cat <<EOF
|
||||||
|
{
|
||||||
|
"device_key": "6ZFVsxM95cuAjYoNLWSWaN",
|
||||||
|
"title": "${TITLE} ${STATUS}",
|
||||||
|
"body": "${BODY}",
|
||||||
|
"group": "Gitea",
|
||||||
|
"isArchive": 1,
|
||||||
|
"ttl": 3600
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
)
|
||||||
|
curl -s \
|
||||||
|
-X POST http://101.43.40.124:81/push \
|
||||||
|
-H "Content-Type: application/json; charset=utf-8" \
|
||||||
|
-d "${PAYLOAD}"
|
||||||
|
|||||||
Reference in New Issue
Block a user