-
Notifications
You must be signed in to change notification settings - Fork 12
38 lines (35 loc) · 852 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: 'Update Images Data'
on:
# push:
# branches:
# - main
schedule:
- cron: '0 7 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 7.8.0
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm'
- run: pnpm install
- name: Update Data
run: npm run update-data
- name: Commit
run: |
git config --global user.name 'GitHub Action'
git config --global user.email '[email protected]'
git add .
git commit -m "update images data"
git push
env:
PUSH_KEY: ${{ secrets.PUSH_KEY }}
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true