mirror of
https://github.com/goauthentik/authentik
synced 2026-04-25 17:15:26 +02:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8e8c483db8...de0fac2e45)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: 6.0.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
59 lines
2.0 KiB
YAML
59 lines
2.0 KiB
YAML
---
|
|
name: Translation - Extract and compile
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 0 * * *" # every day at midnight
|
|
workflow_dispatch:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- version-*
|
|
|
|
env:
|
|
POSTGRES_DB: authentik
|
|
POSTGRES_USER: authentik
|
|
POSTGRES_PASSWORD: "EK-5jnKfjrGRm<77"
|
|
|
|
jobs:
|
|
compile:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- id: generate_token
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2
|
|
with:
|
|
app-id: ${{ secrets.GH_APP_ID }}
|
|
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v5
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
with:
|
|
token: ${{ steps.generate_token.outputs.token }}
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v5
|
|
if: ${{ github.event_name == 'pull_request' }}
|
|
- name: Setup authentik env
|
|
uses: ./.github/actions/setup
|
|
- name: Generate API
|
|
run: make gen-client-ts
|
|
- name: run extract
|
|
run: |
|
|
uv run make i18n-extract
|
|
- name: run compile
|
|
run: |
|
|
uv run ak compilemessages
|
|
make web-check-compile
|
|
- name: Create Pull Request
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v7
|
|
with:
|
|
token: ${{ steps.generate_token.outputs.token }}
|
|
branch: extract-compile-backend-translation
|
|
commit-message: "core, web: update translations"
|
|
title: "core, web: update translations"
|
|
body: "core, web: update translations"
|
|
delete-branch: true
|
|
signoff: true
|
|
labels: dependencies
|
|
# ID from https://api.github.com/users/authentik-automation[bot]
|
|
author: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
|