Update workflow
This commit is contained in:
parent
da068b0273
commit
33480d59c3
1 changed files with 3 additions and 13 deletions
|
@ -1,10 +1,9 @@
|
|||
name: deploy-rs
|
||||
run-name: ${{ github.actor }} - deploy-rs
|
||||
on:
|
||||
push:
|
||||
# schedule:
|
||||
# - cron: '0 2 * * *'
|
||||
# “At 02:00 daily."
|
||||
schedule:
|
||||
- cron: '0 2 * * *'
|
||||
# “At 02:00 daily."
|
||||
|
||||
jobs:
|
||||
deploy-rs:
|
||||
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue