Skip to content

Commit

Permalink
ci: update master save path
Browse files Browse the repository at this point in the history
  • Loading branch information
Aetherinox committed Oct 27, 2024
1 parent 8df58b9 commit 8874cec
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/scripts/bl-block.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ fi

SECONDS=0 # set seconds count for beginning of script
APP_DIR=${PWD} # returns the folder this script is being executed in
APP_REPO="Aetherinox/csf-firewall" # repository
APP_REPO="Aetherinox/dev-kw" # repository
APP_REPO_BRANCH="main" # repository branch
APP_OUT="" # each ip fetched from stdin will be stored in this var
APP_FILE_PERM="${ARG_SAVEFILE}" # perm file when building ipset list
Expand Down Expand Up @@ -114,6 +114,7 @@ echo -e " Blocklist - ${APP_FILE_PERM} (${ARG_BLOCKS_CAT})"
echo -e " ID: ${TEMPL_ID}"
echo -e " UUID: ${TEMPL_UUID}"
echo -e " CATEGORY: ${TEMPL_CAT}"
echo -e " ACTION: ${APP_FILE}"
echo -e " ──────────────────────────────────────────────────────────────────────────────────────────────"

# #
Expand Down
3 changes: 2 additions & 1 deletion .github/scripts/bl-format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fi

SECONDS=0 # set seconds count for beginning of script
APP_DIR=${PWD} # returns the folder this script is being executed in
APP_REPO="Aetherinox/csf-firewall" # repository
APP_REPO="Aetherinox/dev-kw" # repository
APP_REPO_BRANCH="main" # repository branch
APP_OUT="" # each ip fetched from stdin will be stored in this var
APP_FILE_TEMP="${ARG_SAVEFILE}.tmp" # temp file when building ipset list
Expand Down Expand Up @@ -152,6 +152,7 @@ echo -e " Blocklist - ${APP_FILE_PERM}"
echo -e " ID: ${TEMPL_ID}"
echo -e " UUID: ${TEMPL_UUID}"
echo -e " CATEGORY: ${TEMPL_CAT}"
echo -e " ACTION: ${APP_FILE}"
echo -e " ──────────────────────────────────────────────────────────────────────────────────────────────"

# #
Expand Down
3 changes: 2 additions & 1 deletion .github/scripts/bl-html.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ fi

SECONDS=0 # set seconds count for beginning of script
APP_DIR=${PWD} # returns the folder this script is being executed in
APP_REPO="Aetherinox/csf-firewall" # repository
APP_REPO="Aetherinox/dev-kw" # repository
APP_REPO_BRANCH="main" # repository branch
APP_OUT="" # each ip fetched from stdin will be stored in this var
APP_FILE_PERM="${ARG_SAVEFILE}" # perm file when building ipset list
Expand Down Expand Up @@ -120,6 +120,7 @@ echo -e " Blocklist - ${APP_FILE_PERM}"
echo -e " ID: ${TEMPL_ID}"
echo -e " UUID: ${TEMPL_UUID}"
echo -e " CATEGORY: ${TEMPL_CAT}"
echo -e " ACTION: ${APP_FILE}"
echo -e " ──────────────────────────────────────────────────────────────────────────────────────────────"

# #
Expand Down
3 changes: 2 additions & 1 deletion .github/scripts/bl-htmlip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ fi

SECONDS=0 # set seconds count for beginning of script
APP_DIR=${PWD} # returns the folder this script is being executed in
APP_REPO="Aetherinox/csf-firewall" # repository
APP_REPO="Aetherinox/dev-kw" # repository
APP_REPO_BRANCH="main" # repository branch
APP_OUT="" # results of curl command
APP_FILE_TEMP="${ARG_SAVEFILE}.tmp" # temp file when building ipset list
Expand Down Expand Up @@ -124,6 +124,7 @@ echo -e " Blocklist - ${APP_FILE_PERM}"
echo -e " ID: ${TEMPL_ID}"
echo -e " UUID: ${TEMPL_UUID}"
echo -e " CATEGORY: ${TEMPL_CAT}"
echo -e " ACTION: ${APP_FILE}"
echo -e " ──────────────────────────────────────────────────────────────────────────────────────────────"

# #
Expand Down
3 changes: 2 additions & 1 deletion .github/scripts/bl-json.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ fi

SECONDS=0 # set seconds count for beginning of script
APP_DIR=${PWD} # returns the folder this script is being executed in
APP_REPO="Aetherinox/csf-firewall" # repository
APP_REPO="Aetherinox/dev-kw" # repository
APP_REPO_BRANCH="main" # repository branch
APP_OUT="" # each ip fetched from stdin will be stored in this var
APP_FILE_TEMP="${ARG_SAVEFILE}.tmp" # temp file when building ipset list
Expand Down Expand Up @@ -125,6 +125,7 @@ echo -e " Blocklist - ${APP_FILE_PERM}"
echo -e " ID: ${TEMPL_ID}"
echo -e " UUID: ${TEMPL_UUID}"
echo -e " CATEGORY: ${TEMPL_CAT}"
echo -e " ACTION: ${APP_FILE}"
echo -e " ──────────────────────────────────────────────────────────────────────────────────────────────"

# #
Expand Down
3 changes: 2 additions & 1 deletion .github/scripts/bl-master.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ fi

SECONDS=0 # set seconds count for beginning of script
APP_DIR=${PWD} # returns the folder this script is being executed in
APP_REPO="Aetherinox/csf-firewall" # repository
APP_REPO="Aetherinox/dev-kw" # repository
APP_REPO_BRANCH="main" # repository branch
APP_OUT="" # each ip fetched from stdin will be stored in this var
APP_FILE_PERM="${ARG_SAVEFILE}" # perm file when building ipset list
Expand Down Expand Up @@ -119,6 +119,7 @@ echo -e " Blocklist - ${APP_FILE_PERM}"
echo -e " ID: ${TEMPL_ID}"
echo -e " UUID: ${TEMPL_UUID}"
echo -e " CATEGORY: ${TEMPL_CAT}"
echo -e " ACTION: ${APP_FILE}"
echo -e " ──────────────────────────────────────────────────────────────────────────────────────────────"

# #
Expand Down
3 changes: 2 additions & 1 deletion .github/scripts/bl-plain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ fi

SECONDS=0 # set seconds count for beginning of script
APP_DIR=${PWD} # returns the folder this script is being executed in
APP_REPO="Aetherinox/csf-firewall" # repository
APP_REPO="Aetherinox/dev-kw" # repository
APP_REPO_BRANCH="main" # repository branch
APP_FILE_PERM="${ARG_SAVEFILE}" # perm file when building ipset list
APP_OUT="" # each ip fetched from stdin will be stored in this var
Expand Down Expand Up @@ -111,6 +111,7 @@ echo -e " Blocklist - ${APP_FILE_PERM}"
echo -e " ID: ${TEMPL_ID}"
echo -e " UUID: ${TEMPL_UUID}"
echo -e " CATEGORY: ${TEMPL_CAT}"
echo -e " ACTION: ${APP_FILE}"
echo -e " ──────────────────────────────────────────────────────────────────────────────────────────────"

# #
Expand Down
3 changes: 2 additions & 1 deletion .github/scripts/bl-spf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fi

SECONDS=0 # set seconds count for beginning of script
APP_DIR=${PWD} # returns the folder this script is being executed in
APP_REPO="Aetherinox/csf-firewall" # repository
APP_REPO="Aetherinox/dev-kw" # repository
APP_REPO_BRANCH="main" # repository branch
APP_OUT="" # each ip fetched from stdin will be stored in this var
APP_FILE_TEMP="${ARG_SAVEFILE}.tmp" # temp file when building ipset list
Expand Down Expand Up @@ -234,6 +234,7 @@ echo -e " Blocklist - ${APP_FILE_PERM}"
echo -e " ID: ${TEMPL_ID}"
echo -e " UUID: ${TEMPL_UUID}"
echo -e " CATEGORY: ${TEMPL_CAT}"
echo -e " ACTION: ${APP_FILE}"
echo -e " ──────────────────────────────────────────────────────────────────────────────────────────────"

# #
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/blocklist-generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ jobs:
- name: "🧱 Generate › Master"
id: task_blocklist_generate_master
run: |
run_master=".github/scripts/bl-master.sh ${{ vars.API_01_OUT }} ${{ secrets.API_01_FILE_01 }} ${{ secrets.API_01_FILE_02 }} ${{ secrets.API_01_FILE_03 }} ${{ secrets.API_01_FILE_04 }} ${{ secrets.API_01_FILE_05 }} ${{ secrets.API_01_FILE_06 }} ${{ secrets.API_01_FILE_07 }} ${{ secrets.API_01_FILE_08 }}"
run_master=".github/scripts/bl-master.sh blocklists/${{ vars.API_01_OUT }} ${{ secrets.API_01_FILE_01 }} ${{ secrets.API_01_FILE_02 }} ${{ secrets.API_01_FILE_03 }} ${{ secrets.API_01_FILE_04 }} ${{ secrets.API_01_FILE_05 }} ${{ secrets.API_01_FILE_06 }} ${{ secrets.API_01_FILE_07 }} ${{ secrets.API_01_FILE_08 }}"
eval "./$run_master"
run_highrisk=".github/scripts/bl-htmlip.sh blocklists/${{ vars.API_01_HIGHRISK_OUT }} ${{ secrets.API_01_HIGHRISK_URL }} '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}'"
Expand Down

0 comments on commit 8874cec

Please sign in to comment.