-
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (37 loc) · 1.26 KB
/
autoupdatetrans.yaml
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
name: AutoUpdateTransAndComits
on : push
jobs:
updatetransdata:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: SetupPython
uses: actions/setup-python@v2
with:
python-version: '3.9'
architecture: 'x64'
- name: InstallLibrary
run: pip install openpyxl
- name: UpdateTransAndHatData
run: python update_hat_data.py
- name: GetAllChangeFiles
id: changed-file
uses: tj-actions/[email protected]
- uses: stefanzweifel/git-auto-commit-action@v4
id: update-transdata
with:
commit_message: AutoComit Update:trans data
- name: UpdateTransDataComitHash
uses: jossef/action-set-json-field@v1
with:
file: hat/hatData.json
field: updateComitHash
value: ${{ steps.update-transdata.outputs.commit_hash }}
- name: UpdateHatDataComitHash
run: python feat_comit_hash.py ${{ steps.update-transdata.outputs.commit_hash }} ${{ steps.changed-file.outputs.all_changed_and_modified_files }}
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: AutoComit feat:comit hashs