Daily Commit #18
This file contains hidden or 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: Daily Commit | |
on: | |
schedule: | |
- cron: '0 0 * * *' # 매일 자정에 실행 | |
workflow_dispatch: # 수동 실행을 위한 트리거 추가 | |
jobs: | |
commit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Update file | |
run: | | |
echo "Last commit at $(date)" > update.txt | |
- name: Commit changes | |
run: | | |
git config --global user.name 'tkfka1' | |
git config --global user.email 'tkfka1@korea.com' | |
git add update.txt | |
git commit -m "Daily commit: $(date)" | |
git push | |
env: | |
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} |