searxng/.github/workflows/data-update.yml

68 lines
1.9 KiB
YAML
Raw Normal View History

name: "Update searx.data"
on:
schedule:
2022-06-27 13:01:23 +00:00
- cron: "59 23 28 * *"
workflow_dispatch:
jobs:
updateData:
2021-02-25 07:41:17 +00:00
name: Update data - ${{ matrix.fetch }}
runs-on: ubuntu-20.04
if: ${{ github.repository_owner == 'searxng'}}
2021-02-25 07:41:17 +00:00
strategy:
fail-fast: false
2021-02-25 07:41:17 +00:00
matrix:
fetch:
- update_ahmia_blacklist.py
- update_currencies.py
- update_external_bangs.py
- update_firefox_version.py
- update_languages.py
- update_wikidata_units.py
- update_engine_descriptions.py
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Ubuntu packages
run: |
sudo ./utils/searxng.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 10:12:31 +00:00
make V=1 install
- 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 }}
run: |
V=1 ./manage pyenv.cmd python "$FETCH_SCRIPT"
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
with:
2021-02-25 07:41:17 +00:00
commit-message: Update searx.data - ${{ matrix.fetch }}
2021-10-01 07:48:53 +00:00
committer: searxng-bot <noreply@github.com>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
2021-02-25 07:41:17 +00:00
branch: update_data_${{ matrix.fetch }}
delete-branch: true
2021-02-25 07:41:17 +00:00
draft: false
title: 'Update searx.data - ${{ matrix.fetch }}'
body: |
2021-02-25 07:41:17 +00:00
Update searx.data - ${{ matrix.fetch }}
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 }}"