Update file operations in build workflow

Replaced 'mv' commands with 'cp' in several steps to copy files instead of moving them. This ensures source files remain intact during the workflow execution.
This commit is contained in:
xixu-me committed 2025-06-15 18:08:41 +08:00
1 parent 68d5c5c394
commit b6fa82a4ac
1 file changed
+3 -2
+3 -2
View File
@@ -131,7 +131,7 @@ jobs:
- name: Supplement lists
run: |
mv ./dnf/data/* ./community/data/
cp ./dnf/data/list/* ./community/data/
- name: Generate rulesets in YAML and MRS format
run: |
@@ -144,6 +144,7 @@ jobs:
mkdir -p ../publish
cp ../converted/*.mrs ../publish/
mkdir -p ../publish/yaml
cp ../dnf/data/yaml/* ../publish/yaml/
cp ../converted/*.yaml ../publish/yaml/
- name: Push generated rulesets
@@ -488,7 +489,7 @@ jobs:
for file in private tld-!cn; do
head -n 1 ./basic/${file}.yaml > ./basic/temp
tail -n +2 ./basic/${file}.yaml | sort -u >> ./basic/temp
mv ./basic/temp ./basic/${file}.yaml
cp ./basic/temp ./basic/${file}.yaml
done
- name: Prepare converter