diff --git a/.github/workflows/update-status.yml b/.github/workflows/update-status.yml index f7284e1..38f339f 100644 --- a/.github/workflows/update-status.yml +++ b/.github/workflows/update-status.yml @@ -3,7 +3,7 @@ name: Update Status Page on: schedule: - cron: "*/5 * * * *" # every 5 minutes - workflow_dispatch: # manual trigger + workflow_dispatch: # manual trigger via GitHub UI permissions: contents: write @@ -28,18 +28,18 @@ jobs: git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" git add public/status.json - git diff --cached --quiet || git commit -m "chore: update status $(date -u '+%Y-%m-%d %H:%M UTC')" + git diff --cached --quiet && echo "No changes" && exit 0 + git commit -m "chore: status update $(date -u '+%Y-%m-%d %H:%M UTC')" git push - name: Deploy to Hostinger via FTP uses: SamKirkland/FTP-Deploy-Action@v4.3.5 with: - server: ${{ secrets.FTP_SERVER }} - username: ${{ secrets.FTP_USERNAME }} - password: ${{ secrets.FTP_PASSWORD }} - local-dir: ./public/ - server-dir: /public_html/ - dangerous-clean-slate: false + server: ${{ secrets.FTP_SERVER }} + username: ${{ secrets.FTP_USERNAME }} + password: ${{ secrets.FTP_PASSWORD }} + local-dir: ./public/ + server-dir: /public_html/ exclude: | **/.git* **/.git*/**