You've already forked Tricky-Addon-Update-Target-List
mirror of
https://github.com/KOWX712/Tricky-Addon-Update-Target-List.git
synced 2025-09-06 06:37:09 +00:00
opt: update translation guide
migrate to Crowdin
This commit is contained in:
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
@@ -24,10 +24,28 @@ jobs:
|
||||
fetch-depth: 0
|
||||
fetch-tags: true
|
||||
|
||||
- name: Update translation template
|
||||
run: |
|
||||
# Translation template
|
||||
cp -f module/webui/locales/strings/en.xml module/webui/locales/template.xml
|
||||
|
||||
# Commit if found changes
|
||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git config --global user.name "github-actions[bot]"
|
||||
|
||||
# Force push translation template if changed
|
||||
if git status --porcelain | grep 'module/webui/locales/template.xml'; then
|
||||
git add module/webui/locales/template.xml
|
||||
git commit --amend --no-edit
|
||||
fi
|
||||
|
||||
- name: Update dependency
|
||||
if: github.event_name != 'pull_request'
|
||||
run: |
|
||||
# marked.js
|
||||
curl -Ls https://cdn.jsdelivr.net/npm/marked/marked.min.js > module/webui/scripts/assets/marked.min.js
|
||||
|
||||
# OpenSSL
|
||||
wget -q $(curl -Ls https://api.github.com/repos/KOWX712/openssl-static-build/releases/latest | jq -r '.assets[].browser_download_url') -O openssl.tar.gz
|
||||
tar -xzf openssl.tar.gz
|
||||
mv openssl-arm64 module/bin/arm64-v8a/openssl
|
||||
@@ -50,7 +68,7 @@ jobs:
|
||||
fi
|
||||
|
||||
# Push all commits
|
||||
git push
|
||||
git push --force
|
||||
|
||||
- name: Extract Module Info
|
||||
id: extract_info
|
||||
|
||||
Reference in New Issue
Block a user