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 name: deploy-rs
run-name: ${{ github.actor }} - deploy-rs run-name: ${{ github.actor }} - deploy-rs
on: on:
push: schedule:
# schedule: - cron: '0 2 * * *'
# - cron: '0 2 * * *'
# “At 02:00 daily." # “At 02:00 daily."
jobs: jobs:
@ -104,15 +103,6 @@ jobs:
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: 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() - if: failure()
uses: https://git.sysctl.io/actions/gotify-action@master uses: https://git.sysctl.io/actions/gotify-action@master
with: with: