Skip to content

.github/workflows/periodic-update.yaml #69556

.github/workflows/periodic-update.yaml

.github/workflows/periodic-update.yaml #69556

on:
schedule:
- cron: '*/15 * * * *'
workflow_dispatch: {}
jobs:
build-happy-path:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
ref: build-happy-path
- name: Create local changes
run: date > timestamp.txt
- name: Commit files
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -a -m "Periodic update"
- name: Push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: build-happy-path