Skip to content

Check lists

Check lists #214

Workflow file for this run

name: Check lists
run-name: Check lists
on:
workflow_dispatch:
schedule:
- cron: '0 12 * * *'
push:
paths:
- 'config/blacklist.txt'
- 'config/subdomains.txt'
- 'config/whitelist.txt'
permissions:
contents: write
jobs:
check-lists:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
- name: check.sh
run: bash check.sh
- name: Push
if: ${{ success() || failure() }}
run: |
git config user.email ${{ vars.GIT_EMAIL }}
git config user.name ${{ vars.GIT_USERNAME }}
git add .
git diff-index --quiet HEAD || git commit -m "Check lists"
git push -q
build:
needs: check-lists
uses: ./.github/workflows/build.yml