Update workflows
This commit is contained in:
parent
821695dbe4
commit
0990eedc4f
1 changed files with 20 additions and 20 deletions
|
@ -25,8 +25,8 @@ jobs:
|
|||
id
|
||||
cat /etc/resolv.conf
|
||||
|
||||
- name: "Setup: Runner"
|
||||
run: |
|
||||
- name: "Setup: Runner"
|
||||
run:
|
||||
apt update -y
|
||||
apt install git nodejs nix-bin sudo curl -y
|
||||
git config --global user.email "${{github.actor}}"
|
||||
|
@ -41,7 +41,7 @@ jobs:
|
|||
apt update -y
|
||||
apt install tailscale -y
|
||||
|
||||
- name: "Setup: SSH"
|
||||
- name: "Setup: SSH"
|
||||
run: |
|
||||
rm -rf /root/.ssh
|
||||
mkdir /root/.ssh
|
||||
|
@ -103,18 +103,18 @@ jobs:
|
|||
tailscale down
|
||||
|
||||
- if: success()
|
||||
uses: https://git.sysctl.io/actions/gotify-action@master
|
||||
uses: https://git.sysctl.io/actions/gotify-action@master
|
||||
with:
|
||||
gotify_api_base: '${{ secrets.GOTIFY_URL }}'
|
||||
gotify_app_token: '${{ secrets.GOTIFY_TOKEN }}'
|
||||
notification_title: '[ ${{ github.repository }}: ${{ github.workflow }} ] NixOS Deployed'
|
||||
notification_message: 'Deployment completed successfully.'
|
||||
name: "Send Notification - Success"
|
||||
name: "Send Notification - Success"
|
||||
- if: failure()
|
||||
uses: https://git.sysctl.io/actions/gotify-action@master
|
||||
uses: https://git.sysctl.io/actions/gotify-action@master
|
||||
with:
|
||||
gotify_api_base: '${{ secrets.GOTIFY_URL }}'
|
||||
gotify_app_token: '${{ secrets.GOTIFY_TOKEN }}'
|
||||
notification_title: '[ ${{ github.repository }}: ${{ github.workflow }} ] Deployment Failed'
|
||||
notification_message: 'Your deployment has failed. Check Forgejo.'
|
||||
name: "Send Notification - Failure"
|
||||
name: "Send Notification - Failure"
|
||||
|
|
Loading…
Reference in a new issue