Update Blocklist #2230
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Blocklist | |
on: # Define the events that trigger the workflow | |
schedule: | |
- cron: '0 * * * *' # Check Every Hours | |
workflow_dispatch: | |
jobs: | |
update-blocklist: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
token: ${{ secrets.BOT_GITHUB_TOKEN || github.token }} | |
- name: Run update script | |
run: | | |
chmod +x update.sh # Make update.sh executable | |
./update.sh # Run the script | |
env: # Set environment variables for sensitive data | |
GIT_USERNAME: ${{ secrets.GIT_USERNAME }} | |
GIT_EMAIL: ${{ secrets.GIT_EMAIL }} | |
DOMAIN_URL: ${{ secrets.SOURCE_URL }} | |
IP_URL: ${{ secrets.SOURCE_URL2 }} | |
SITUS_JUDI: ${{ secrets.SITUS_JUDI }} |