-
-
Notifications
You must be signed in to change notification settings - Fork 6
66 lines (56 loc) · 2.27 KB
/
make_experimental.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: NoAds eXperimental
on:
push:
paths:
- 'contrib/xfiles_*'
workflow_dispatch:
jobs:
noads_experimental:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 1
- name: Set Timezone
uses: szenius/[email protected]
with:
timezoneLinux: "Europe/Rome"
- name: Set date and time
run: sh ./sh/datetime.sh
- name: Prepare list header
run: |
echo "[Adblock Plus 2.8]" > experimental.txt
echo "! Version:" $update >> experimental.txt
echo "! Title: ABP eXperimental Files: the unstable list" >> experimental.txt
echo "! Fork sperimentale di X Files, si consiglia di usare la lista Stable!" >> experimental.txt
echo "! Last modified:" $lastmodified >> experimental.txt
echo "! Expires: 8 hours" >> experimental.txt
echo "! Homepage: https://xfiles.noads.it" >> experimental.txt
echo "! Home: https://xfiles.noads.it" >> experimental.txt
echo "! Blog: https://go.gioxx.org/noads" >> experimental.txt
echo "! Hosting: GitHub.com" >> experimental.txt
echo "!" >> experimental.txt
- name: Make eXperimental
run: sh ./sh/make_experimental.sh
- name: Prepare vCheck
run: |
num_of_lines=$(grep -v '^! ' "experimental.txt" | wc -l)
md5=($(md5sum experimental.txt| cut -d ' ' -f 1))
echo $update > vcheck/check_experimental.txt
echo $lastmodified >> vcheck/check_experimental.txt
echo $checkwebsite >> vcheck/check_experimental.txt
echo $num_of_lines >> vcheck/check_experimental.txt
echo $md5 >> vcheck/check_experimental.txt
- name: Commit eXperimental
run: |
git config --local user.email "[email protected]"
git config --local user.name "GWall[bot]"
git add experimental.txt
git add vcheck/check_experimental.txt
# git add contrib/xfiles_22-bpc
git commit -m "Experimental $update del $lastmodified" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}