-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 1.1 KB
/
auto.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
35
36
37
38
name: CI
on:
push:
branches: [ master ]
workflow_dispatch:
schedule:
- cron: '0 */1 * * *' # Runs every 1 hours
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checkout the repository to work with
- uses: actions/checkout@v3
# Overwrite log.md with the current Indonesian time (WIB - UTC+7)
- name: Overwrite log with Indonesian time
run: |
# Get the current date and time in Indonesian time (WIB)
DATE=$(TZ='Asia/Jakarta' date +"%A, %d %B %Y %H:%M:%S")
# Overwrite log.md with the new date and time
echo "Log updated at: $DATE (WIB)" > logs/log.md
# Add and commit the changes
git add .
git config user.name 'Xnuvers007'
git config user.email '[email protected]'
git commit -m "Jangan Lupa Follow @indradwi.25"
git push || echo "No changes to push"
# Display a simple confirmation message
- name: Show Message
run: echo "log.md overwritten with new Indonesian time. Commit complete!"