Skip to content

Commit

Permalink
Merge pull request #12 from KLOSWC/master
Browse files Browse the repository at this point in the history
Update test.yml
  • Loading branch information
o0HalfLife0o authored Jun 23, 2024
2 parents 0171f95 + 212eede commit 97c1995
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,16 @@ jobs:
rm -rf apk/
mkdir -p apk/
for file in `find ~ -name "*release*.apk" -print`; do
mv "$file" apk/TVBox_${{ matrix.userName }}_${{ env.tag }}.apk
# 获取文件的基本名称
base=$(basename "$file")
# 如果文件是 TVBox_ 开头
if [[ "$base" == TVBox_* ]]; then
new_base=$(echo "$base" | sed "s/release/${{ matrix.userName }}_${{ env.tag }}/")
else
new_base="TVBox_${{ matrix.userName }}_${{ env.tag }}.apk"
fi
# 移动并重命名文件
mv "$file" "apk/$new_base"
done
- name: Release Note
if: ${{ env.commit }}
Expand Down

0 comments on commit 97c1995

Please sign in to comment.