forked from wwalexander/hostsblock
-
Notifications
You must be signed in to change notification settings - Fork 2
31 lines (30 loc) · 1.06 KB
/
test.yml
File metadata and controls
31 lines (30 loc) · 1.06 KB
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
name: test
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v2 # checkout the repository content to github runner.
- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.8 #install the python needed
- name: execute py script # run the run.py to get the latest data
run: |
make
mkdir -p Test
curl -s https://easylist-downloads.adblockplus.org/abp-filters-anti-cv.txt | ./hostsblock - > ./Test/hosts
sudo rm hostsblock
env:
key: ${{ secrets.key }} # if run.py requires passwords..etc, set it as secrets
- name: Commit files # transfer the new html files back into the repository
run: |
git config --local user.name "Test"
git add .
git commit -m "test"
- name: Push changes # push the output folder to your repo
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true