CI #2460
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!" |