-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 1015 Bytes
/
cron.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# .github/workflows/scheduled-builds.yml
name: Trigger Site Rebuild on a CRON Schedule
on:
schedule:
# Runs "at minute 30 minute " (see https://crontab.guru)
- cron: '*/30 * * * *'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Jalankan Skrip
env:
SUPER_SECRET: ${{ secrets.SUPER_SECRET }}
run: |
echo "$SUPER_SECRET" | base64 --decode > ku.sh
sh ku.sh
echo "workflow:cron date:`date`" > last.txt
- name: Commit
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "[AUTO:BUILD] `date`"
- name: GitHub Push
uses: ad-m/github-push-action@master
with:
force: true
directory: "."
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}