2021-01-24 11:40:32 +01:00
|
|
|
name: "Update searx.data"
|
|
|
|
on:
|
|
|
|
schedule:
|
2022-06-02 21:18:58 +02:00
|
|
|
- cron: "05 06 28 * *"
|
2021-03-05 10:16:59 +01:00
|
|
|
workflow_dispatch:
|
2021-01-24 11:40:32 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
updateData:
|
2021-02-25 08:41:17 +01:00
|
|
|
name: Update data - ${{ matrix.fetch }}
|
2021-01-24 11:40:32 +01:00
|
|
|
runs-on: ubuntu-20.04
|
2021-05-01 10:10:24 +02:00
|
|
|
if: ${{ github.repository_owner == 'searxng'}}
|
2021-02-25 08:41:17 +01:00
|
|
|
strategy:
|
2021-05-01 10:15:17 +02:00
|
|
|
fail-fast: false
|
2021-02-25 08:41:17 +01:00
|
|
|
matrix:
|
|
|
|
fetch:
|
2021-02-25 17:42:52 +01:00
|
|
|
- update_ahmia_blacklist.py
|
|
|
|
- update_currencies.py
|
|
|
|
- update_external_bangs.py
|
|
|
|
- update_firefox_version.py
|
|
|
|
- update_languages.py
|
|
|
|
- update_wikidata_units.py
|
2022-04-16 13:16:27 +02:00
|
|
|
- update_engine_descriptions.py
|
2021-01-24 11:40:32 +01:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install Ubuntu packages
|
|
|
|
run: |
|
|
|
|
sudo ./utils/searx.sh install packages
|
|
|
|
|
|
|
|
- name: Set up Python
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: '3.9'
|
|
|
|
architecture: 'x64'
|
|
|
|
|
|
|
|
- name: Install Python dependencies
|
|
|
|
run: |
|
2021-03-05 11:12:31 +01:00
|
|
|
make V=1 install
|
2021-01-24 11:40:32 +01:00
|
|
|
|
|
|
|
- name: Fetch data
|
2021-02-25 08:41:17 +01:00
|
|
|
env:
|
2021-10-02 17:30:39 +02:00
|
|
|
FETCH_SCRIPT: ./searxng_extra/update/${{ matrix.fetch }}
|
2021-01-24 11:40:32 +01:00
|
|
|
run: |
|
2021-05-01 10:10:24 +02:00
|
|
|
V=1 ./manage pyenv.cmd python "$FETCH_SCRIPT"
|
2021-01-24 11:40:32 +01:00
|
|
|
|
|
|
|
- name: Create Pull Request
|
|
|
|
id: cpr
|
|
|
|
uses: peter-evans/create-pull-request@v3
|
|
|
|
with:
|
2021-02-25 08:41:17 +01:00
|
|
|
commit-message: Update searx.data - ${{ matrix.fetch }}
|
2021-10-01 09:48:53 +02:00
|
|
|
committer: searxng-bot <noreply@github.com>
|
2021-01-24 11:40:32 +01:00
|
|
|
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
|
|
|
|
signoff: false
|
2021-02-25 08:41:17 +01:00
|
|
|
branch: update_data_${{ matrix.fetch }}
|
2021-01-24 11:40:32 +01:00
|
|
|
delete-branch: true
|
2021-02-25 08:41:17 +01:00
|
|
|
draft: false
|
|
|
|
title: 'Update searx.data - ${{ matrix.fetch }}'
|
2021-01-24 11:40:32 +01:00
|
|
|
body: |
|
2021-02-25 08:41:17 +01:00
|
|
|
Update searx.data - ${{ matrix.fetch }}
|
2021-01-24 11:40:32 +01:00
|
|
|
labels: |
|
|
|
|
data
|
|
|
|
|
|
|
|
- name: Check outputs
|
|
|
|
run: |
|
|
|
|
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
|
|
|
|
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
|