mirror of
https://github.com/moepoi/moepoi.git
synced 2024-12-08 19:32:26 +01:00
Update CI
This commit is contained in:
parent
10487613be
commit
2a0906c7c3
1 changed files with 13 additions and 5 deletions
18
.github/workflows/updater.yml
vendored
18
.github/workflows/updater.yml
vendored
|
@ -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 ~"
|
||||
|
|
Loading…
Reference in a new issue