Skip to content

feat:new seono hats #44

feat:new seono hats

feat:new seono hats #44

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 pylightxl
- 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