Skip to content

Commit

Permalink
ci: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Aetherinox committed Oct 21, 2024
1 parent 52b850e commit bb37b39
Showing 1 changed file with 17 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
# #
# @usage https://github.com/Aetherinox/csf-firewall
# @type github workflow
# @desc download AbuseIPDB ip list
# @author Aetherinox
# @url https://github.com/Aetherinox
#
# used in combination with .github/scripts/db-blocklist-download.sh
#
# download AbuseIPDB ip list after list of ips are downloaded, merges them with a static list
# that is not updated as often which contains a list of long-term abusive ip addresses
#
# local test requires the same structure as the github workflow
# 📁 .github
# 📁 blocks
# 📄 1.txt
# 📁 scripts
# 📄 db-blocklist-download.sh
# 📁 workflows
# 📄 db-blocklist-download.yml
# #

name: "🧱 Blocklist › Generate"
Expand Down Expand Up @@ -75,8 +87,8 @@ jobs:
run: |
# set permissions and run
echo ${GITHUB_WORKSPACE}
chmod +x ".github/scripts/abuseipdb-blocklist-download.sh"
command=".github/scripts/abuseipdb-blocklist-download.sh ${{ secrets.BLOCKLIST_URL1 }} ${{ secrets.BLOCKLIST_FILE }}"
chmod +x ".github/scripts/db-blocklist-download.sh"
command=".github/scripts/db-blocklist-download.sh ${{ secrets.BLOCKLIST_URL1 }} ${{ secrets.BLOCKLIST_FILE }}"
eval "./$command"
# cat csf.deny
Expand Down

0 comments on commit bb37b39

Please sign in to comment.