Skip to content

feat: YostarEN Stultifera Navis Rerun stages #7

feat: YostarEN Stultifera Navis Rerun stages

feat: YostarEN Stultifera Navis Rerun stages #7

Workflow file for this run

name: sync-resource
on:
push:
branches:
- main
paths:
- 'MaaAssistantArknights/api/resource/**'
- 'MaaAssistantArknights/api/gui/StageActivity.json'
- '.github/workflows/sync-resource.yml'
jobs:
sync-reource:
runs-on: ubuntu-latest
steps:
- name: Checkout MaaRelease
uses: actions/[email protected]
- name: Setup Git
run: |
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "[email protected]"
git show -s
- name: Checkout MaaResource
uses: actions/[email protected]
with:
repository: MaaAssistantArknights/MaaResource
ssh-key: ${{secrets.MAA_RESOURCE_DEPLOY}}
path: MaaResource
- name: Update MaaResource
run: |
export commit_msg=$(git show -s --format=%s)
cd MaaResource
shopt -s extglob
rm -rf cache
cp -rf ../MaaAssistantArknights/api/resource cache
cp -rf ../MaaAssistantArknights/api/gui/StageActivity.json cache/
git add .
git status
git commit -m "$commit_msg" || exit 0
git push