mirror of https://github.com/vapor/docs.git
Create gh action for creating translation issues (#674)
* Create gh action for creating translation issues * Add template body & label check to translation gh * Update .github/workflows/translation.yml Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>
This commit is contained in:
parent
e4a1ad36e6
commit
aeaa00c421
|
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
title: Translation needed for {{'#'}}{{env.PR_NUMBER}}
|
||||||
|
---
|
||||||
|
|
||||||
|
The docs have been updated in PR {{'#'}}{{env.PR_NUMBER}}. The translations should be updated if required.
|
||||||
|
|
||||||
|
Languages:
|
||||||
|
- [ ] English
|
||||||
|
- [ ] Chinese
|
||||||
|
- [ ] German
|
||||||
|
- [ ] Dutch
|
||||||
|
|
||||||
|
Assigned to @vapor/translations - please submit a PR with the relevant updates and check the box once merged. Please ensure you tag your PR with the `translation-update` so it doesn't create a new issue!
|
||||||
|
|
@ -0,0 +1,26 @@
|
||||||
|
name: Check PR and create issue for translation
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
create:
|
||||||
|
name: Create issue
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Find PR
|
||||||
|
uses: 8BitJonny/gh-get-current-pr@2.1.0
|
||||||
|
id: find-pr
|
||||||
|
with:
|
||||||
|
state: all
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Create issue
|
||||||
|
if: steps.find-pr.outputs.number && !contains(steps.find-pr.outputs.pr_labels, 'translation-update') && !contains(steps.find-pr.outputs.pr_labels, 'no-translation-needed')
|
||||||
|
uses: JasonEtco/create-an-issue@v2
|
||||||
|
env:
|
||||||
|
PR_NUMBER: ${{ steps.find-pr.outputs.number }}
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
filename: .github/workflows/translation-issue-template.md
|
||||||
Loading…
Reference in New Issue