Update Clicks #1
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: Update Clicks | |
on: | |
schedule: | |
- cron: "0 0 1 * *" | |
jobs: | |
update-clicks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: "0.69.2" | |
extended: true | |
- name: Build | |
run: | | |
git config core.quotePath false | |
hugo | |
- name: Install requirements | |
run: pip install requests pyaml | |
- run: python scripts/UpdateClicks.py | |
- name: Commit | |
run: | | |
git config user.email "[email protected]" | |
git config user.name "GitHub Action" | |
git commit -am "chore: update clicks" | |
- name: Push changes | |
uses: ad-m/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} | |
- name: Trigger Deploy | |
uses: benc-uk/[email protected] | |
with: | |
workflow: Deploy | |
token: ${{ secrets.PERSONAL_TOKEN }} |