diff --git a/.github/workflows/sendGFWList.yml b/.github/workflows/sendGFWList.yml index e1ba6cd..272f700 100644 --- a/.github/workflows/sendGFWList.yml +++ b/.github/workflows/sendGFWList.yml @@ -12,6 +12,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 + with: + fetch-depth: '0' - name: Install dependencies run: | @@ -37,6 +39,7 @@ jobs: - name: update date and checksum run: | + cp apollyon/* ./ perl addChecksum.pl list.txt || { echo "Error: Failed to update checksum"; exit 1; } if [ "$(file -b list.txt)" != "ASCII text" ]; then echo "Error: list.txt invalid, please make sure:" diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..9aebe2f --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "apollyon"] + path = apollyon + url = https://github.com/gfwlist/apollyon diff --git a/apollyon b/apollyon new file mode 160000 index 0000000..caf685e --- /dev/null +++ b/apollyon @@ -0,0 +1 @@ +Subproject commit caf685e7eda2a54d85ae2b18c50aecff8b04f3b1