forked from MycroftAI/fallback-unknown
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* modernize * modernize * bump workflows * ignore setuptools vulnerability --------- Co-authored-by: emphasize <[email protected]>
- Loading branch information
Showing
12 changed files
with
299 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Auto translate | ||
on: | ||
push: | ||
branches: | ||
- dev | ||
paths: | ||
- 'locale/en-us/**' | ||
- 'dialog/en-us/**' | ||
- 'vocab/en-us/**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
autotranslate: | ||
if: "! contains(toJSON(github.event.commits.*.message), 'autotranslate')" | ||
env: | ||
API_KEY: ${{secrets.DL_API_KEY}} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: dev | ||
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
- name: Install Translate Tools | ||
run: | | ||
python -m pip install ovos-translate-plugin-deepl ovos-utils | ||
- name: Auto Translate | ||
run: | | ||
python scripts/translate.py | ||
- name: Commit to dev | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: Increment Version | ||
branch: dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,12 +13,12 @@ jobs: | |
strategy: | ||
max-parallel: 2 | ||
matrix: | ||
python-version: [ 3.7, 3.8, 3.9, "3.10" ] | ||
python-version: [ 3.7, 3.8, 3.9, "3.10", "3.11" ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Setup Python | ||
uses: actions/setup-python@v1 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install Build Tools | ||
|
@@ -37,8 +37,9 @@ jobs: | |
- name: Install skill | ||
run: | | ||
pip install . | ||
- uses: pypa/[email protected].0 | ||
- uses: pypa/[email protected].7 | ||
with: | ||
# Ignore setuptools vulnerability we can't do much about | ||
ignore-vulns: | | ||
GHSA-r9hx-vwmv-q579 | ||
GHSA-r9hx-vwmv-q579 | ||
PYSEC-2022-43012 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Propose Translation | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
language: | ||
type: choice | ||
description: Language to translate | ||
options: | ||
- de-de | ||
- ca-es | ||
- es-es | ||
- cs-cz | ||
- fr-fr | ||
- it-it | ||
- da-dk | ||
- nl-nl | ||
- hu-hu | ||
- pl-pl | ||
- pt-pt | ||
- ru-ru | ||
- sv-fi | ||
- sv-se | ||
- tr-tr | ||
|
||
jobs: | ||
Propose_translation: | ||
env: | ||
TARGET_LANG: ${{ inputs.language }} | ||
API_KEY: ${{ secrets.DL_API_KEY }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.ref_name }} | ||
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
- name: Install Translate Tools | ||
run: | | ||
python -m pip install ovos-translate-plugin-deepl ovos-utils | ||
- name: Run Translate Script | ||
run: python scripts/translate.py | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: autotranslate | ||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
title: Proposed ${{ inputs.language }} Translations | ||
body: Translations for review | ||
labels: translation | ||
branch: staging/translation_${{ inputs.language }} | ||
reviewers: emphasize |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.