Main #48
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: 'Main' | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '00 13 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout main branch | |
uses: actions/checkout@v3 | |
- name: Create date file | |
run: echo $(date) > src/date.txt | |
- name: Commit date file | |
run: | | |
git config --global user.email "GitHub Actions" | |
git config --global user.name "actions@github.com" | |
git add src/date.txt . | |
git commit -m "Update date.txt" | |
- name: Push commit | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} | |