🤖 An action that fetches the list of malicious domains on Discord in different providers and creates/updates a JSON file with them from time to time.
MIT License
As your app will consume the domains.json, it's recommended to you create an empty one with an empty array just to be filled when this action run, so your application can import this file without any problem.
Example: At src/data path in your repository, create a domains.json with the following content:
[]
And your workflow file should look like the following:
on:
schedule:
# At minute 0 past every 5th hour
# https://crontab.guru/#0_*/5_*_*_*
- cron: "0 */5 * * *"
jobs:
discord_guardian_job:
runs-on: ubuntu-latest
name: Discord Guardian Job
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Discord Guardian Action
uses: actions/[email protected]
id: discord
with:
name: 'Your Name'
email: '[email protected]'
directory: src/data
Now, when this action runs for the first time, the domains.json will be filled. 🥳
name
Required!
The commit author name.
email
Required!
The commit author email.
directory
Optional
The directory to output the domain list. Default is "."
fileName
Optional
The Name of the output JSON file containing the domain list. Default is "domains"
myDomainList
Optional
The Path to your own JSON list of domains file to be joined in the final domains.json
Example:
myDomainList: src/data/my-domains.json
This action is only possible thanks to the following projects:
✨ Don't forget to give them a star