Skip to content

importer

importer #10476

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: importer
on:
repository_dispatch:
types: [ importer ]
workflow_dispatch:
inputs:
name:
description: 'Description'
required: false
jobs:
build:
runs-on: ubuntu-latest
if: "! contains(github.event.head_commit.message, '[ci skip]')"
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: python -m pip install --upgrade pip
- name: Install elasticsearch
run: pip install elasticsearch7
- name: Run
run: python main.py
env:
PARATRANZ_SECRET: ${{ secrets.PARATRANZ_SECRET }}
ELASTICSEARCH_HOST: ${{ secrets.ELASTICSEARCH_HOST }}
ELASTICSEARCH_PASSWORD: ${{ secrets.ELASTICSEARCH_PASSWORD }}
ELASTICSEARCH_PORT: ${{ secrets.ELASTICSEARCH_PORT }}
- name: Discord notification
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@master
with:
args: 'Translations are refreshed'