2021-10-11 15:51:49 +00:00
|
|
|
name: authentik-backend-translate-compile
|
|
|
|
on:
|
|
|
|
push:
|
2023-04-21 10:54:23 +00:00
|
|
|
branches: [main]
|
2021-10-11 15:51:49 +00:00
|
|
|
paths:
|
2023-05-06 11:42:41 +00:00
|
|
|
- "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:
|
2023-05-31 12:23:04 +00:00
|
|
|
- id: generate_token
|
|
|
|
uses: tibdex/github-app-token@v1
|
|
|
|
with:
|
|
|
|
app_id: ${{ secrets.GH_APP_ID }}
|
|
|
|
private_key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
2023-09-05 04:42:41 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-01-22 18:09:49 +00:00
|
|
|
with:
|
2023-05-31 12:23:04 +00:00
|
|
|
token: ${{ steps.generate_token.outputs.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
|
2023-05-06 11:42:41 +00:00
|
|
|
run: poetry run ak compilemessages
|
2021-10-11 15:51:49 +00:00
|
|
|
- name: Create Pull Request
|
2023-04-05 09:31:25 +00:00
|
|
|
uses: peter-evans/create-pull-request@v5
|
2021-11-23 18:15:31 +00:00
|
|
|
id: cpr
|
2021-10-11 15:51:49 +00:00
|
|
|
with:
|
2023-05-31 12:23:04 +00:00
|
|
|
token: ${{ steps.generate_token.outputs.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
|