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.
This commit is contained in:
parent
556369bfef
commit
1c3a1f2c7c
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Reference in New Issue