Admiral Domains #57
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: Admiral Domains List | |
on: | |
schedule: | |
- cron: '30 2 * * 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-with: cpanm | |
install-modules-args: --with-develop --with-configure | |
- run: prove -lv t | |
- name: Download Admiral List | |
run: | | |
scripts/admiral-domains.sh | |
- name: Create Pull Request | |
id: cpr | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit-message: Update Admiral Domains | |
committer: GitHub <[email protected]> | |
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | |
signoff: false | |
branch: admiral-domains-update | |
delete-branch: true | |
title: '[GitHub Actions] Update Admiral Domains Filter List' | |
body: | | |
Update Admiral 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 }} |