forked from Scratchcat1/not-on-my-shift
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 871 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: CI
on:
schedule:
- cron: "0 12 * * *"
workflow_dispatch:
permissions: read-all
jobs:
build:
runs-on: ubuntu-22.04
permissions: write-all
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Build
run: |
chmod +x build.bash
bash build.bash
- name: Ensure files have contents
run: |
[ $(wc -l < built/hosts.txt) -gt 100 ]
[ $(wc -l < built/abp.txt) -gt 100 ]
[ $(wc -l < built/domains.txt) -gt 100 ]
- name: Make the working tree safe
run: git config --global --add safe.directory /__w/not-on-my-shift/not-on-my-shift
- name: Publish
uses: stefanzweifel/git-auto-commit-action@4d160c5e4d67c62e67f03ae49aa38359e964139a
with:
commit_message: "Updated filters"