A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
ci: consistent app usage (#1206)
Jiralite9984ce86a6a7
diff --git a/.github/workflows/i18n-source-sync.yaml b/.github/workflows/i18n-source-sync.yamlindex a95ef7412..42ad138d7 100644--- a/.github/workflows/i18n-source-sync.yaml+++ b/.github/workflows/i18n-source-sync.yaml@@ -4,9 +4,7 @@ name: i18n source syncon:workflow_dispatch:-permissions:- contents: write- pull-requests: write+permissions: {}concurrency:group: i18n-source-sync@@ -18,7 +16,6 @@ defaults:env:SOURCE_BRANCH: automation/i18n-source-catalogs- GH_TOKEN: ${{ github.token }}jobs:sync:@@ -26,10 +23,23 @@ jobs:runs-on: ubuntu-24.04timeout-minutes: 30steps:+ - name: Create token+ id: create-token+ uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1+ with:+ client-id: ${{ vars.FLUXER_CI_APP_ID }}+ private-key: ${{ secrets.FLUXER_CI_APP_KEY }}+ owner: fluxerapp+ repositories: fluxer+ permission-contents: write+ permission-pull-requests: write+- name: Checkout codeuses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83ddwith:+ token: ${{ steps.create-token.outputs.token }}fetch-depth: 0+ persist-credentials: false- name: Set up Rust toolchainuses: dtolnay/rust-toolchain@b3b07ba8b418998c39fb20f53e8b695cdcc8de1b@@ -57,6 +67,8 @@ jobs:run: pnpm biome format --write package.json packages/i18n/package.json packages/i18n/scripts/SyncStaticI18nCatalogs.ts packages/errors/src/i18n fluxer_api/pkgs/email/src/email_i18n fluxer_api/src/api/content_i18n- name: Open source catalog PR+ env:+ GH_TOKEN: ${{ steps.create-token.outputs.token }}run: |set -euo pipefailif [[ -z "$(git status --porcelain -- fluxer_app/src/features/i18n/locales fluxer_marketing/locales packages/errors/src/i18n fluxer_api/pkgs/email/src/email_i18n fluxer_api/src/api/content_i18n)" ]]; then@@ -64,11 +76,12 @@ jobs:exit 0fi- git config user.name "fluxer-i18n-bot"- git config user.email "github-actions[bot]@users.noreply.github.com"+ git config user.name "fluxer-ci[bot]"+ git config user.email "${{ vars.FLUXER_CI_APP_ID }}+fluxer-ci[bot]@users.noreply.github.com"git switch -c "$SOURCE_BRANCH"git add fluxer_app/src/features/i18n/locales fluxer_marketing/locales packages/errors/src/i18n fluxer_api/pkgs/email/src/email_i18n fluxer_api/src/api/content_i18ngit commit -m "chore(i18n): refresh source catalogs"+ git remote set-url origin "https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"git fetch origin "$SOURCE_BRANCH" || truegit push --force-with-lease="refs/heads/$SOURCE_BRANCH" origin "HEAD:$SOURCE_BRANCH"diff --git a/.github/workflows/i18n-weblate-pr.yaml b/.github/workflows/i18n-weblate-pr.yamlindex 5080461e7..b2f879820 100644--- a/.github/workflows/i18n-weblate-pr.yaml+++ b/.github/workflows/i18n-weblate-pr.yaml@@ -9,9 +9,7 @@ on:required: falsedefault: "weblate/translations"-permissions:- contents: write- pull-requests: write+permissions: {}concurrency:group: i18n-weblate-${{ github.event.inputs.branch || github.ref_name }}@@ -22,7 +20,6 @@ defaults:shell: bashenv:- GH_TOKEN: ${{ github.token }}WEBLATE_BRANCH: ${{ github.event.inputs.branch || github.ref_name }}jobs:@@ -31,11 +28,24 @@ jobs:runs-on: ubuntu-24.04timeout-minutes: 30steps:+ - name: Create token+ id: create-token+ uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1+ with:+ client-id: ${{ vars.FLUXER_CI_APP_ID }}+ private-key: ${{ secrets.FLUXER_CI_APP_KEY }}+ owner: fluxerapp+ repositories: fluxer+ permission-contents: write+ permission-pull-requests: write+- name: Checkout Weblate branchuses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83ddwith:+ token: ${{ steps.create-token.outputs.token }}ref: ${{ env.WEBLATE_BRANCH }}fetch-depth: 0+ persist-credentials: false- name: Set up Rust toolchainuses: dtolnay/rust-toolchain@b3b07ba8b418998c39fb20f53e8b695cdcc8de1b@@ -63,6 +73,8 @@ jobs:run: pnpm biome format --write package.json packages/i18n/package.json packages/i18n/scripts/SyncStaticI18nCatalogs.ts packages/errors/src/i18n fluxer_api/pkgs/email/src/email_i18n fluxer_api/src/api/content_i18n- name: Commit generated artifacts+ env:+ GH_TOKEN: ${{ steps.create-token.outputs.token }}run: |set -euo pipefailif [[ -z "$(git status --porcelain -- fluxer_app/src/features/i18n/locales packages/errors/src/i18n fluxer_api/pkgs/email/src/email_i18n fluxer_api/src/api/content_i18n)" ]]; then@@ -70,13 +82,16 @@ jobs:exit 0fi- git config user.name "fluxer-i18n-bot"- git config user.email "github-actions[bot]@users.noreply.github.com"+ git config user.name "fluxer-ci[bot]"+ git config user.email "${{ vars.FLUXER_CI_APP_ID }}+fluxer-ci[bot]@users.noreply.github.com"git add fluxer_app/src/features/i18n/locales packages/errors/src/i18n fluxer_api/pkgs/email/src/email_i18n fluxer_api/src/api/content_i18ngit commit -m "i18n: compile Weblate catalogs"+ git remote set-url origin "https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"git push origin "HEAD:$WEBLATE_BRANCH"- name: Open Weblate PR+ env:+ GH_TOKEN: ${{ steps.create-token.outputs.token }}run: |set -euo pipefailpr_number="$(gh pr list --base main --head "$WEBLATE_BRANCH" --state open --json number --jq '.[0].number // empty')"diff --git a/.github/workflows/labeller.yaml b/.github/workflows/labeller.yamlindex 4df36b4af..2b0f8a7e7 100644--- a/.github/workflows/labeller.yaml+++ b/.github/workflows/labeller.yaml@@ -11,8 +11,8 @@ jobs:id: create-tokenuses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1with:- client-id: ${{ vars.APPLICATION_ID }}- private-key: ${{ secrets.APP_PRIVATE_KEY }}+ client-id: ${{ vars.FLUXER_CI_APP_ID }}+ private-key: ${{ secrets.FLUXER_CI_APP_KEY }}owner: fluxerapprepositories: fluxerpermission-pull-requests: write