mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 01:38:13 +00:00
Update snapshot automation (#6624)
* Update snapshots-pc.yml * Update snapshots-android.yml * Update snapshots-pc.yml
This commit is contained in:
7
.github/workflows/snapshots-android.yml
vendored
7
.github/workflows/snapshots-android.yml
vendored
@@ -109,3 +109,10 @@ jobs:
|
|||||||
local-dir: upload/
|
local-dir: upload/
|
||||||
server-dir: downloads/dailysnapshots/
|
server-dir: downloads/dailysnapshots/
|
||||||
state-name: .ftp-deploy-android-sync-state.json
|
state-name: .ftp-deploy-android-sync-state.json
|
||||||
|
|
||||||
|
- name: Send failure notification to Discord
|
||||||
|
if: failure() # This step runs only if the job fails
|
||||||
|
run: |
|
||||||
|
curl -X POST -H "Content-Type: application/json" \
|
||||||
|
-d "{\"content\": \"🔴 Android Snapshot Build Failed in branch: \`${{ github.ref_name }}\` by \`${{ github.actor }}\`.\nCheck logs: ${{ github.run_url }}\"}" \
|
||||||
|
${{ secrets.DISCORD_AUTOMATION_WEBHOOK }}
|
||||||
|
|||||||
7
.github/workflows/snapshots-pc.yml
vendored
7
.github/workflows/snapshots-pc.yml
vendored
@@ -89,3 +89,10 @@ jobs:
|
|||||||
*.pom
|
*.pom
|
||||||
*.repositories
|
*.repositories
|
||||||
*.xml
|
*.xml
|
||||||
|
|
||||||
|
- name: Send failure notification to Discord
|
||||||
|
if: failure() # This step runs only if the job fails
|
||||||
|
run: |
|
||||||
|
curl -X POST -H "Content-Type: application/json" \
|
||||||
|
-d "{\"content\": \"🔴 Desktop Snapshot Build Failed in branch: \`${{ github.ref_name }}\` by \`${{ github.actor }}\`.\nCheck logs: ${{ github.run_url }}\"}" \
|
||||||
|
${{ secrets.DISCORD_AUTOMATION_WEBHOOK }}
|
||||||
|
|||||||
Reference in New Issue
Block a user