diff --git a/.github/workflows/scheduled-redeploy.yml b/.github/workflows/scheduled-redeploy.yml new file mode 100644 index 0000000..6a1a94f --- /dev/null +++ b/.github/workflows/scheduled-redeploy.yml @@ -0,0 +1,25 @@ +name: Scheduled Redeploy Trigger + +on: + workflow_dispatch: + schedule: + # Runs daily at 04:30 WIB (21:30 UTC). + - cron: "30 21 * * *" + +permissions: + contents: write + +jobs: + trigger-redeploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Create empty commit to trigger Coolify + run: | + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git commit --allow-empty -m "chore: scheduled redeploy trigger" + git push