1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-15 16:05:03 +00:00
Files
browser/.github/workflows/lint-crowdin-config.yml
renovate[bot] 082bbd716f [deps]: Update Minor github-actions updates (#18434)
* [deps]: Update Minor github-actions updates

* Revert update of actions/create-github-app-token in test-browser-interactions.yml

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
Co-authored-by: Daniel James Smith <2670567+djsmith85@users.noreply.github.com>
2026-01-26 09:15:59 -05:00

57 lines
1.8 KiB
YAML

name: Lint Crowdin Config
on:
pull_request:
types: [opened, synchronize]
paths:
- '**/crowdin.yml'
jobs:
lint-crowdin-config:
name: Lint Crowdin Config ${{ matrix.app.name }}
runs-on: ubuntu-24.04
permissions:
contents: read
id-token: write
strategy:
matrix:
app: [
{ name: 'web', project_id: '308189', config_path: 'apps/web/crowdin.yml' },
{ name: 'desktop', project_id: '299360', config_path: 'apps/desktop/crowdin.yml' },
{ name: 'browser', project_id: '268134', config_path: 'apps/browser/crowdin.yml' }
]
steps:
- name: Check out repo
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
fetch-depth: 1
persist-credentials: false
- name: Log in to Azure
uses: bitwarden/gh-actions/azure-login@main
with:
subscription_id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
tenant_id: ${{ secrets.AZURE_TENANT_ID }}
client_id: ${{ secrets.AZURE_CLIENT_ID }}
- name: Retrieve secrets
id: retrieve-secrets
uses: bitwarden/gh-actions/get-keyvault-secrets@main
with:
keyvault: "bitwarden-ci"
secrets: "crowdin-api-token"
- name: Log out from Azure
uses: bitwarden/gh-actions/azure-logout@main
- name: Lint ${{ matrix.app.name }} config
uses: crowdin/github-action@60debf382ee245b21794321190ad0501db89d8c1 # v2.13.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ matrix.app.project_id }}
CROWDIN_API_TOKEN: ${{ steps.retrieve-secrets.outputs.crowdin-api-token }}
with:
dryrun_action: true
command: 'config lint'
command_args: '--verbose -c ${{ matrix.app.config_path }}'