This repository has been archived by the owner on Oct 26, 2024. It is now read-only.
ADH Lists - Daily Task #992
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: ADH Lists - Daily Task | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
jobs: | |
check-and-trigger: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
repository: 'dontobi/AdGuardHome-Lists' | |
token: ${{ secrets.ACTIONS_PAT }} | |
- name: Run Shell Script | |
id: script | |
run: | | |
mkdir output | |
cp whitelist.txt ./output | |
chmod +x ./build_blacklist.sh | |
sh ./build_blacklist.sh | |
cp blacklist.txt ./output | |
shell: bash | |
- name: Check GitHub Pages status | |
uses: crazy-max/[email protected] | |
with: | |
pages_threshold: major_outage | |
- name: Deploy to GitHub Pages | |
if: success() | |
uses: crazy-max/[email protected] | |
with: | |
target_branch: lists | |
build_dir: output | |
env: | |
GITHUB_TOKEN: ${{ secrets.ACTIONS_PAT }} |