-
Notifications
You must be signed in to change notification settings - Fork 4
103 lines (85 loc) · 2.69 KB
/
GameInfo.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: Extract GameInformation
on:
schedule:
- cron: '55 8 * * *' #大约每日17点05执行任务(gh服务器延迟问题)
watch:
types: [started]
workflow_dispatch:
push:
branches:
- main
env:
PYTHONIOENCODING: utf-8
# Allow Release
permissions: write-all
jobs:
build:
name: 'Extract GameInformation Operations'
runs-on: "windows-latest"
steps:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.10
- name: Checkout private repo
uses: actions/checkout@v2
- name: Setup Extractor
run: |
git clone -b main https://${{ secrets.GIT_AUTH_TOKEN }}:[email protected]//yuhao7370/Phigros_Extractor.git
pip3 install -r Phigros_Extractor/requirements.txt
shell: bash
- name: Execute Extractor
id: operation
run: python3 Phigros_Extractor/GithubActions.py
- name: Cleanind
id: clean
run: python3 clean.py
- name: commit
env:
useremail: ${{ secrets.GH_EMAIL }}
run: |
git config --global user.email useremail
git config --global user.name GithubActionBot
git add .
git commit -m "仓库更新" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GIT_AUTH_TOKEN }}
# - name: Pushing illu
# uses: ncipollo/release-action@v1
# with:
# name: "Phigros Illustration"
# body: >-
# Phigros Illustration
# commit: ${{ github.sha }}
# tag: "illu"
# # artifacts: Phigros_Extractor\prehandle\*
# artifacts: Phigros_Extractor\Illustrations.zip
# allowUpdates: true
# removeArtifacts: true
# replacesArtifacts: true
# - name: Pushing CT
# uses: ncipollo/release-action@v1
# with:
# name: "Phigros Constant Table"
# body: >-
# Phigros Constant Table
# commit: ${{ github.sha }}
# tag: "table"
# artifacts: Phigros_Extractor\Assets\ConstantTable\Generated\*
# allowUpdates: true
# removeArtifacts: true
# replacesArtifacts: true
# - name: Pushing to release
# uses: ncipollo/release-action@v1
# with:
# name: "Phigros Gameinformation"
# body: >-
# Phigros Gameinformation
# commit: ${{ github.sha }}
# tag: "info"
# artifacts: Phigros_Extractor\Assets\GameInformation\*
# allowUpdates: true
# removeArtifacts: true
# replacesArtifacts: true