From 1c3a1f2c7c324818a609832d9ec8cc8aab3c3279 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 1 Apr 2025 11:54:25 +0200 Subject: [PATCH] fix(ci): use deploy key to push crowdin changes Due to the branch protection rules, it is not possible to push directly to the main branch, unless when using a deploy key with write access. --- .github/workflows/crowdin.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/crowdin.yml b/.github/workflows/crowdin.yml index 3ef37d5f4..4d2c0ede3 100644 --- a/.github/workflows/crowdin.yml +++ b/.github/workflows/crowdin.yml @@ -11,6 +11,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + with: + ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} + persist-credentials: true - name: push source files uses: crowdin/github-action@b8012bd5491b8aa8578b73ab5b5f5e7c94aaa6e2 # v2 with: @@ -54,5 +57,5 @@ jobs: if: steps.check_changes.outputs.changes_exist != '0' uses: ad-m/github-push-action@master with: - github_token: ${{ secrets.GITHUB_TOKEN }} + ssh: true branch: ${{ github.ref }}