2021-10-11 16:51:49 +01:00
|
|
|
name: authentik-backend-translate-compile
|
|
|
|
on:
|
|
|
|
push:
|
2022-06-03 18:40:09 +01:00
|
|
|
branches: [ main ]
|
2021-10-11 16:51:49 +01:00
|
|
|
paths:
|
|
|
|
- '/locale/'
|
2021-11-24 17:16:02 +00:00
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- '/locale/'
|
2021-10-11 16:51:49 +01:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
env:
|
|
|
|
POSTGRES_DB: authentik
|
|
|
|
POSTGRES_USER: authentik
|
|
|
|
POSTGRES_PASSWORD: "EK-5jnKfjrGRm<77"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
compile:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-03-02 08:56:53 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-04-04 13:02:10 +01:00
|
|
|
- name: Setup authentik env
|
|
|
|
uses: ./.github/actions/setup
|
2021-10-11 16:57:57 +01:00
|
|
|
- name: run compile
|
2021-12-25 12:42:08 +00:00
|
|
|
run: poetry run ./manage.py compilemessages
|
2021-10-11 16:51:49 +01:00
|
|
|
- name: Create Pull Request
|
2022-03-24 09:13:58 +00:00
|
|
|
uses: peter-evans/create-pull-request@v4
|
2021-11-23 18:15:31 +00:00
|
|
|
id: cpr
|
2021-10-11 16:51:49 +01:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
branch: compile-backend-translation
|
|
|
|
commit-message: "core: compile backend translations"
|
|
|
|
title: "core: compile backend translations"
|
2021-11-23 18:15:31 +00:00
|
|
|
body: "core: compile backend translations"
|
2021-10-11 16:51:49 +01:00
|
|
|
delete-branch: true
|
|
|
|
signoff: true
|