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