Update workflow

This commit is contained in:
albert 2024-04-16 14:46:40 +09:00
parent da068b0273
commit 33480d59c3
No known key found for this signature in database
GPG key ID: 64F6C4EB46C4543A

View file

@ -1,9 +1,8 @@
name: deploy-rs
run-name: ${{ github.actor }} - deploy-rs
on:
push:
# schedule:
# - cron: '0 2 * * *'
schedule:
- cron: '0 2 * * *'
# “At 02:00 daily."
jobs:
@ -104,15 +103,6 @@ jobs:
notification_title: '[ ${{ github.repository }}: ${{ github.workflow }} ] NixOS Deployed'
notification_message: 'Deployment completed successfully.'
name: "Send Notification - Success"
- if: success()
name: "Push changes to git"
run: |
ssh -q -A -o StrictHostKeyChecking=no albert@framework-server \
"
cd /etc/nixos/git
git commit -am \"[ACTIONS] deploy-rs updates (`date +%Y-%m-%d`)\"
git push
"
- if: failure()
uses: https://git.sysctl.io/actions/gotify-action@master
with: