2021-05-06 14:57:50 +02:00
|
|
|
name: clean
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
2021-05-06 20:16:23 +02:00
|
|
|
clean:
|
2021-05-06 14:57:50 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-05-06 17:02:52 +02:00
|
|
|
country: [
|
2021-05-06 20:20:19 +02:00
|
|
|
# ad
|
2021-05-06 20:16:23 +02:00
|
|
|
# ae,
|
|
|
|
# af,
|
2021-05-06 20:23:52 +02:00
|
|
|
al
|
2021-05-06 20:16:23 +02:00
|
|
|
# am,
|
|
|
|
# ao,
|
|
|
|
# ar,
|
2021-05-06 20:23:52 +02:00
|
|
|
# at,
|
2021-05-06 17:02:52 +02:00
|
|
|
# au,
|
|
|
|
# aw,
|
|
|
|
# az,
|
|
|
|
# ba,
|
|
|
|
# bb,
|
|
|
|
# bd,
|
|
|
|
# be,
|
|
|
|
# bf,
|
|
|
|
# bg,
|
|
|
|
# bh,
|
|
|
|
# bn,
|
|
|
|
# bo,
|
|
|
|
# br,
|
|
|
|
# bs,
|
|
|
|
# by,
|
|
|
|
# ca,
|
|
|
|
# cd,
|
|
|
|
# cg,
|
|
|
|
# ch,
|
|
|
|
# ci,
|
|
|
|
# cl,
|
|
|
|
# cm,
|
|
|
|
# cn,
|
|
|
|
# co,
|
|
|
|
# cr,
|
|
|
|
# cu,
|
|
|
|
# cw,
|
|
|
|
# cy,
|
|
|
|
# cz,
|
|
|
|
# de,
|
|
|
|
# dk,
|
|
|
|
# do,
|
|
|
|
# dz,
|
|
|
|
# ec,
|
|
|
|
# ee,
|
|
|
|
# eg,
|
|
|
|
# es,
|
|
|
|
# et,
|
|
|
|
# fi,
|
|
|
|
# fj,
|
|
|
|
# fo,
|
|
|
|
# fr,
|
|
|
|
# ge,
|
|
|
|
# gh,
|
|
|
|
# gm,
|
|
|
|
# gn,
|
|
|
|
# gp,
|
|
|
|
# gq,
|
|
|
|
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j,
|
|
|
|
# tm,
|
|
|
|
# tn,
|
|
|
|
# tr,
|
|
|
|
# tt,
|
|
|
|
# tw,
|
|
|
|
# tz,
|
|
|
|
# ua,
|
|
|
|
# ug,
|
|
|
|
# uk,
|
|
|
|
# us,
|
|
|
|
# uy,
|
|
|
|
# uz,
|
|
|
|
# va,
|
|
|
|
# ve,
|
|
|
|
# vi,
|
|
|
|
# vn,
|
|
|
|
# xk,
|
|
|
|
# ye,
|
|
|
|
# zm,
|
|
|
|
# unsorted
|
2021-05-06 14:57:50 +02:00
|
|
|
]
|
2021-05-06 19:53:17 +02:00
|
|
|
max-parallel: 1
|
2021-05-06 14:57:50 +02:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: npm install
|
|
|
|
- name: Remove Broken Links
|
|
|
|
run: node scripts/clean.js --country=${{ matrix.country }}
|
2021-05-06 19:44:23 +02:00
|
|
|
- name: Create Pull Request
|
|
|
|
uses: peter-evans/create-pull-request@v3
|
|
|
|
with:
|
2021-05-06 20:16:23 +02:00
|
|
|
branch: bot/remove-broken-links
|
2021-05-06 19:44:23 +02:00
|
|
|
title: '[Bot] Remove broken links'
|
|
|
|
body: |
|
|
|
|
This pull request is created automatically.
|