-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (24 loc) · 822 Bytes
/
daily-commit.yml
File metadata and controls
28 lines (24 loc) · 822 Bytes
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
name: Daily Commit by 23f1000537@ds.study.iitm.ac.in
on:
schedule:
# Run daily at 00:00 UTC (midnight)
- cron: '0 0 * * *'
workflow_dispatch: # Allows manual triggering
jobs:
commit:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Step by 23f1000537@ds.study.iitm.ac.in - Create commit file
run: |
echo "Automated daily commit on $(date -u)" > daily-log.txt
- name: Commit changes
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add daily-log.txt
git commit -m "Daily automated commit $(date -u)"
git push