Update CI

This commit is contained in:
Moe Poi ~ 2022-09-06 20:52:17 +07:00
parent 10487613be
commit 2a0906c7c3
Signed by: moepoi
GPG key ID: 334B501E883409AF

View file

@ -1,4 +1,4 @@
name: Update Github README
name: Synchronize
on:
schedule:
- cron: '*/5 * * * *'
@ -9,12 +9,12 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8
- uses: actions/cache@v2
python-version: '3.10'
- uses: actions/cache@v3
name: Configure pip caching
with:
path: ~/.cache/pip
@ -31,10 +31,18 @@ jobs:
python favorites_updater.py
python activity_updater.py
cat README.md
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
- name: Commit and push if changed
env:
GITHUB_TOKEN: ${{ secrets.PUSH_TOKEN }}
run: |-
git pull
git diff
git config --global user.email "moe@chocola.dev"
git config --global user.name "Moe Poi ~"