Update workflows

This commit is contained in:
albert 2024-09-03 21:40:50 +09:00
parent 821695dbe4
commit 0990eedc4f
Signed by: albert
GPG key ID: 3895DD267CA11BA9

View file

@ -25,8 +25,8 @@ jobs:
id id
cat /etc/resolv.conf cat /etc/resolv.conf
- name: "Setup: Runner" - name: "Setup: Runner"
run: | run:
apt update -y apt update -y
apt install git nodejs nix-bin sudo curl -y apt install git nodejs nix-bin sudo curl -y
git config --global user.email "${{github.actor}}" git config --global user.email "${{github.actor}}"
@ -41,7 +41,7 @@ jobs:
apt update -y apt update -y
apt install tailscale -y apt install tailscale -y
- name: "Setup: SSH" - name: "Setup: SSH"
run: | run: |
rm -rf /root/.ssh rm -rf /root/.ssh
mkdir /root/.ssh mkdir /root/.ssh
@ -103,18 +103,18 @@ jobs:
tailscale down tailscale down
- if: success() - if: success()
uses: https://git.sysctl.io/actions/gotify-action@master uses: https://git.sysctl.io/actions/gotify-action@master
with: with:
gotify_api_base: '${{ secrets.GOTIFY_URL }}' gotify_api_base: '${{ secrets.GOTIFY_URL }}'
gotify_app_token: '${{ secrets.GOTIFY_TOKEN }}' gotify_app_token: '${{ secrets.GOTIFY_TOKEN }}'
notification_title: '[ ${{ github.repository }}: ${{ github.workflow }} ] NixOS Deployed' notification_title: '[ ${{ github.repository }}: ${{ github.workflow }} ] NixOS Deployed'
notification_message: 'Deployment completed successfully.' notification_message: 'Deployment completed successfully.'
name: "Send Notification - Success" name: "Send Notification - Success"
- if: failure() - if: failure()
uses: https://git.sysctl.io/actions/gotify-action@master uses: https://git.sysctl.io/actions/gotify-action@master
with: with:
gotify_api_base: '${{ secrets.GOTIFY_URL }}' gotify_api_base: '${{ secrets.GOTIFY_URL }}'
gotify_app_token: '${{ secrets.GOTIFY_TOKEN }}' gotify_app_token: '${{ secrets.GOTIFY_TOKEN }}'
notification_title: '[ ${{ github.repository }}: ${{ github.workflow }} ] Deployment Failed' notification_title: '[ ${{ github.repository }}: ${{ github.workflow }} ] Deployment Failed'
notification_message: 'Your deployment has failed. Check Forgejo.' notification_message: 'Your deployment has failed. Check Forgejo.'
name: "Send Notification - Failure" name: "Send Notification - Failure"