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
|
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:
|
||||||
deploy-rs:
|
deploy-rs:
|
||||||
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue