Update clean.yml

This commit is contained in:
Aleksandr Statciuk 2021-08-08 13:37:00 +03:00
parent c5860bb8b3
commit 01318d2518
1 changed files with 166 additions and 165 deletions

View File

@ -23,176 +23,177 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
country: country: [
[ ad
ad, # ae,
ae, # af,
af, # ag,
ag, # al,
al, # am,
am, # an,
an, # ao,
ao, # ar,
ar, # at,
at, # au,
au, # aw,
aw, # az,
az, # ba,
ba, # bb,
bb, # bd,
bd, # be,
be, # bf,
bf, # bg,
bg, # bh,
bh, # bn,
bn, # bo,
bo, # br,
br, # bs,
bs, # by,
by, # ca,
ca, # cd,
cd, # cg,
cg, # ch,
ch, # ci,
ci, # cl,
cl, # cm,
cm, # cn,
cn, # co,
co, # cr,
cr, # cu,
cu, # cw,
cw, # cy,
cy, # cz,
cz, # de,
de, # dk,
dk, # do,
do, # dz,
dz, # ec,
ec, # ee,
ee, # eg,
eg, # es,
es, # et,
et, # fi,
fi, # fj,
fj, # fo,
fo, # fr,
fr, # pf,
pf, # ge,
ge, # gh,
gh, # gm,
gm, # gn,
gn, # gp,
gp, # gq,
gq, # gr,
gr, # gt,
gt, # hk,
hk, # hn,
hn, # hr,
hr, # ht,
ht, # hu,
hu, # id,
id, # ie,
ie, # il,
il, # in,
in, # iq,
iq, # ir,
ir, # is,
is, # it,
it, # jm,
jm, # jo,
jo, # jp,
jp, # ke,
ke, # kg,
kg, # kh,
kh, # kp,
kp, # kr,
kr, # kw,
kw, # kz,
kz, # la,
la, # lb,
lb, # li,
li, # lk,
lk, # lt,
lt, # lu,
lu, # lv,
lv, # ly,
ly, # ma,
ma, # mc,
mc, # md,
md, # me,
me, # mk,
mk, # ml,
ml, # mm,
mm, # mn,
mn, # mo,
mo, # mt,
mt, # mv,
mv, # mx,
mx, # my,
my, # mz,
mz, # ne,
ne, # ng,
ng, # ni,
ni, # nl,
nl, # no,
no, # np,
np, # nz,
nz, # om,
om, # pa,
pa, # pe,
pe, # ph,
ph, # pk,
pk, # pl,
pl, # pr,
pr, # ps,
ps, # pt,
pt, # py,
py, # qa,
qa, # ro,
ro, # rs,
rs, # ru,
ru, # rw,
rw, # sa,
sa, # sd,
sd, # se,
se, # sg,
sg, # si,
si, # sk,
sk, # sl,
sl, # sm,
sm, # sn,
sn, # so,
so, # sv,
sv, # sy,
sy, # th,
th, # tj,
tj, # tm,
tm, # tn,
tn, # tr,
tr, # tt,
tt, # tw,
tw, # tz,
tz, # ua,
ua, # ug,
ug, # uk,
uk, # us,
us, # uy,
uy, # uz,
uz, # va,
va, # ve,
ve, # vi,
vi, # vn,
vn, # xk,
xk, # ye,
ye, # zm,
zm, # unsorted
unsorted
] ]
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
ref: bot/remove-broken-links ref: bot/remove-broken-links
- name: Setup FFmpeg
uses: FedericoCarboni/setup-ffmpeg@v1
- name: Install Dependencies - name: Install Dependencies
run: npm install run: npm install
- name: Remove Broken Links - name: Remove Broken Links
@ -244,7 +245,7 @@ jobs:
pr_body: | pr_body: |
This pull request is created by [clean][1] workflow. This pull request is created by [clean][1] workflow.
The script checks each link and removes only those that return a HTTP 404 code (Not Found). Also, the script ignores links with labels `[Geo-blocked]` and `[Not 24/7]` in the title. The script checks each link and removes only those that return a HTTP 404 code (Not Found). Also, the script ignores links with labels `[Geo-blocked]`, `[Offline]` and `[Not 24/7]` in the title.
**IMPORTANT:** Before merging all links should be checked manually to make sure that the response from the server has not changed. Working links should be marked as `[Not 24/7]` so that next time the script will not delete them. **IMPORTANT:** Before merging all links should be checked manually to make sure that the response from the server has not changed. Working links should be marked as `[Not 24/7]` so that next time the script will not delete them.