Skip to content

Redirect Updater

Redirect Updater #1676

Workflow file for this run

name: Redirect Updater
on:
schedule:
- cron: '30 0 * * *'
# - cron: '*/5 * * * *'
jobs:
build:
runs-on: ubuntu-latest
name: run
steps:
- uses: actions/checkout@v2
with:
ref: 'gh-pages'
- name: Golang Action
uses: cedrickring/[email protected]
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add --update
if ! git diff --quiet HEAD ; then
DATE=$(date "+%Y/%m/%d %H:%M %Z")
git commit -m "Updated by GithubActions at ${DATE}"
git push
fi
# - name: Push changes
# uses: ad-m/github-push-action@master
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# branch: 'gh-pages'