Malware Domains #54
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: malware-domains-list | |
on: | |
schedule: | |
- cron: '30 1 * * 1' | |
workflow_dispatch: | |
jobs: | |
Updates: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shogo82148/actions-setup-perl@v1 | |
with: | |
perl-version: '5.38' | |
install-modules: | | |
Path::Tiny | |
- name: Download Malware Domains List | |
run: | | |
scripts/malware-domains.sh | |
- name: Create Pull Request | |
id: cpr | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit-message: Update Malware Domains | |
committer: GitHub <noreply@github.com> | |
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | |
signoff: false | |
branch: malware-domains-update | |
delete-branch: true | |
title: '[GitHub Actions] Update Malware Domains Filter List' | |
body: | | |
Update Malware Domains Filter List: | |
- Updated with *today's* date | |
- Auto-generated by [create-pull-request][1] | |
[1]: https://github.com/peter-evans/create-pull-request | |
labels: | |
automated pr | |
assignees: LanikSJ | |
reviewers: LanikSJ | |
draft: false | |
- name: Enable PR Automerge | |
if: steps.cpr.outputs.pull-request-operation == 'created' | |
uses: peter-evans/enable-pull-request-automerge@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }} | |
merge-method: squash | |
# - name: Approve Pull Request | |
# uses: juliangruber/approve-pull-request-action@v2 | |
# with: | |
# github-token: ${{ secrets.GITHUB_TOKEN }} | |
# number: ${{ steps.cpr.outputs.pull-request-number }} |