Skip to content

Update Assets

Update Assets #367

Workflow file for this run

name: Update Assets
on:
workflow_dispatch: {}
schedule:
- cron: '0 12 * * *'
jobs:
update:
runs-on: macOS-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Set up Swift
uses: swift-actions/setup-swift@v2
- name: Install dependencies
run: pip install -r Script/requirements.txt
- name: Fetch latest commit SHA
id: latest_sha
run: echo "::set-output name=sha::$(git ls-remote https://github.com/Mar-7th/StarRailRes.git HEAD | cut -f1)"
- name: Run Python update asset meta script
id: compare_shas
run: |
python ./Script/update_gacha_meta.py
python ./Script/update_other_meta.py
bash ./Script/RelocateGachaMetaJSON.sh
zsh ./Script/convertAssetsToHEIC.sh
swift ./Script/ImageAssetRegenerator.swift
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update-gacha-meta-${{ github.run_number }}
base: dev
title: "Update Asset Meta"
body: |
This PR updates the gacha meta and other assets (see update_other_meta.py for details).
delete-branch: true
assignees: ShikiSuen
reviewers: CanglongCl
team-reviewers: |
owners
maintainers