Update assets.yml
This commit is contained in:
6
.github/workflows/assets.yml
vendored
6
.github/workflows/assets.yml
vendored
@@ -18,7 +18,7 @@ jobs:
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.x' # 使用最新稳定版Python
|
||||
python-version: '3.x'
|
||||
|
||||
- name: Prepare files for B Repo (remove comments via Python)
|
||||
run: |
|
||||
@@ -65,7 +65,7 @@ for root_dir, _, files in os.walk("temp-b-repo/out/assets"):
|
||||
if file.endswith(".xml"):
|
||||
file_path = os.path.join(root_dir, file)
|
||||
remove_comments_from_xml(file_path)
|
||||
EOF
|
||||
EOF # 修正:确保EOF单独成行,且没有多余空格或缩进
|
||||
|
||||
# 运行Python脚本处理所有XML文件
|
||||
python remove_xml_comments.py
|
||||
@@ -79,7 +79,7 @@ EOF
|
||||
- name: Push to Private B Repo
|
||||
env:
|
||||
B_REPO_TOKEN: ${{ secrets.B_REPO_TOKEN }}
|
||||
B_REPO_URL: https://github.com/TO-teams/flash.git
|
||||
B_REPO_URL: https://kkgithub.com/TO-teams/flash.git
|
||||
B_BRANCH: main
|
||||
run: |
|
||||
git config --global user.name "GitHub Actions"
|
||||
|
||||
Reference in New Issue
Block a user