feat: remove discord action and edit name
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 6s
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 6s
This commit is contained in:
parent
39b388fc6e
commit
f51bb374be
1 changed files with 1 additions and 35 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
name: Deploy Local
|
name: Deploy Ham Training Repo
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
@ -41,37 +41,3 @@ jobs:
|
||||||
username: ${{ secrets.SSH_DEPLOY_USER }}
|
username: ${{ secrets.SSH_DEPLOY_USER }}
|
||||||
password: ${{ secrets.SSH_DEPLOY_PASSWORD }}
|
password: ${{ secrets.SSH_DEPLOY_PASSWORD }}
|
||||||
script: eval "${{ secrets.SSH_DEPLOY_CMD }}"
|
script: eval "${{ secrets.SSH_DEPLOY_CMD }}"
|
||||||
- name: Notify Discord Success
|
|
||||||
if: success()
|
|
||||||
run: |
|
|
||||||
curl -H "Content-Type: application/json" -X POST \
|
|
||||||
-d '{
|
|
||||||
"embeds": [{
|
|
||||||
"title": "✅ Gitea Local Deployment Success!",
|
|
||||||
"description": "**Details:**\n- Image: `${{ env.CONTAINER_IMAGE_NAME }}`\n- Deployed by: `${{ github.actor }}`",
|
|
||||||
"color": 3066993,
|
|
||||||
"footer": {
|
|
||||||
"text": "Local Release Notification",
|
|
||||||
"icon_url": "https://example.com/success-icon.png"
|
|
||||||
},
|
|
||||||
"timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'"
|
|
||||||
}]
|
|
||||||
}' \
|
|
||||||
${{ secrets.DISCORD_WEBHOOK }}
|
|
||||||
- name: Notify Discord Failure
|
|
||||||
if: failure()
|
|
||||||
run: |
|
|
||||||
curl -H "Content-Type: application/json" -X POST \
|
|
||||||
-d '{
|
|
||||||
"embeds": [{
|
|
||||||
"title": "❌ Gitea Local Deployment Failed!",
|
|
||||||
"description": "**Details:**\n- Image: `${{ env.CONTAINER_IMAGE_NAME }}`\n- Attempted by: `${{ github.actor }}`",
|
|
||||||
"color": 15158332,
|
|
||||||
"footer": {
|
|
||||||
"text": "Local Release Notification",
|
|
||||||
"icon_url": "https://example.com/failure-icon.png"
|
|
||||||
},
|
|
||||||
"timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'"
|
|
||||||
}]
|
|
||||||
}' \
|
|
||||||
${{ secrets.DISCORD_WEBHOOK }}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue