CI fix tentative #19
This commit is contained in:
parent
12531da5aa
commit
30d438e0cb
1 changed files with 8 additions and 12 deletions
|
|
@ -81,6 +81,14 @@ jobs:
|
|||
include: *site_matrix
|
||||
|
||||
steps:
|
||||
- name: Install Deployment Tools
|
||||
run: |
|
||||
if command -v apk >/dev/null; then
|
||||
apk add --no-cache rsync openssh-client
|
||||
else
|
||||
apt-get update && apt-get install -y rsync openssh-client
|
||||
fi
|
||||
|
||||
- name: Setup SSH
|
||||
env:
|
||||
SSH_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
|
|
@ -106,18 +114,6 @@ jobs:
|
|||
if: always() # Always run
|
||||
steps:
|
||||
- name: Send Discord Notification
|
||||
# uses: https://github.com/appleboy/discord-action@master
|
||||
# with:
|
||||
# color: ${{ needs.deploy.result == 'success' && '48867' || '16711680' }}
|
||||
# message: |
|
||||
# **Deployment Report**
|
||||
# **Status:** ${{ needs.deploy.result }}
|
||||
# **Repo:** ${{ github.repository }}
|
||||
# **Commit:** ${{ github.sha }}
|
||||
# webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
|
||||
# webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
|
||||
|
||||
# Trial with curl as the above just fails
|
||||
run: |
|
||||
STATUS="${{ needs.deploy.result }}"
|
||||
COLOR=$([ "$STATUS" == "success" ] && echo "48867" || echo "16711680")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue