Redirect Updater #1286
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: 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' |