2021-10-11 15:51:49 +00:00
|
|
|
name: authentik-backend-translate-compile
|
|
|
|
on:
|
|
|
|
push:
|
2022-06-03 17:40:09 +00:00
|
|
|
branches: [ main ]
|
2021-10-11 15:51:49 +00:00
|
|
|
paths:
|
|
|
|
- '/locale/'
|
2021-11-24 17:16:02 +00:00
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- '/locale/'
|
2021-10-11 15:51:49 +00: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
|
2023-01-22 18:09:49 +00:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
2022-04-04 12:02:10 +00:00
|
|
|
- name: Setup authentik env
|
|
|
|
uses: ./.github/actions/setup
|
2021-10-11 15:57:57 +00:00
|
|
|
- name: run compile
|
2021-12-25 12:42:08 +00:00
|
|
|
run: poetry run ./manage.py compilemessages
|
2021-10-11 15:51:49 +00: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 15:51:49 +00:00
|
|
|
with:
|
2023-01-22 18:09:49 +00:00
|
|
|
token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
2021-10-11 15:51:49 +00:00
|
|
|
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 15:51:49 +00:00
|
|
|
delete-branch: true
|
|
|
|
signoff: true
|