Skip to content

Main

Main #331

Workflow file for this run

name: 'Main'
on:
workflow_dispatch:
schedule:
- cron: '0 */4 * * *'
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 "[email protected]"
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 }}