@@ -0,0 +1,67 @@
1+name: "Update searx.data"
10+ if: env.DATA_PR_TOKEN != null
13+ uses: actions/checkout@v2
15+ - name: Install Ubuntu packages
17+ sudo ./utils/searx.sh install packages
19+ - name: Set up Python
20+ uses: actions/setup-python@v2
22+ python-version: '3.9'
25+ - name: Cache Python dependencies
27+ uses: actions/cache@v2
30+ key: python-${{ matrix.os }}-3.9-${{ hashFiles('requirements*.txt', 'setup.py') }}
32+ - name: Install Python dependencies
33+ if: steps.cache-python.outputs.cache-hit != 'true'
39+ source local/py3/bin/activate
40+ python utils/fetch_firefox_version.py
41+ python utils/fetch_languages.py
42+ python utils/fetch_ahmia_blacklist.py
43+ python utils/fetch_wikidata_units.py
44+ # python utils/fetch_currencies.py
46+ - name: Create Pull Request
48+ uses: peter-evans/create-pull-request@v3
50+ token: ${{ secrets.DATA_PR_TOKEN }}
51+ commit-message: Update searx.data
52+ committer: searx-bot <noreply@github.com>
53+ author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
55+ branch: automatic-update-data
57+ title: 'Update searx.data'
64+ - name: Check outputs
66+ echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
67+ echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"