From b6fa82a4acbee3278373261105ba0f0ff9eba494 Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Sun, 15 Jun 2025 18:08:41 +0800 Subject: [PATCH] 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. --- .github/workflows/build-and-publish.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 156a426..d0bdcaa 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -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