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
|
include: *site_matrix
|
||||||
|
|
||||||
steps:
|
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
|
- name: Setup SSH
|
||||||
env:
|
env:
|
||||||
SSH_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
SSH_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
|
@ -106,18 +114,6 @@ jobs:
|
||||||
if: always() # Always run
|
if: always() # Always run
|
||||||
steps:
|
steps:
|
||||||
- name: Send Discord Notification
|
- 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: |
|
run: |
|
||||||
STATUS="${{ needs.deploy.result }}"
|
STATUS="${{ needs.deploy.result }}"
|
||||||
COLOR=$([ "$STATUS" == "success" ] && echo "48867" || echo "16711680")
|
COLOR=$([ "$STATUS" == "success" ] && echo "48867" || echo "16711680")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue