From f7db4f75fe95bd0f52bef5b61e3cf71c8b390866 Mon Sep 17 00:00:00 2001 From: Shanwer Date: Sun, 3 Mar 2024 18:30:26 +0800 Subject: [PATCH] try ssh-key in sync to trigger build action automatically. --- .github/workflows/sync_with_upstream.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync_with_upstream.yml b/.github/workflows/sync_with_upstream.yml index 9e569a9c074..1c71b3d3a91 100644 --- a/.github/workflows/sync_with_upstream.yml +++ b/.github/workflows/sync_with_upstream.yml @@ -14,6 +14,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + ssh-key: "${{secrets.COMMIT_KEY}}" - name: Configure Git run: | @@ -36,5 +37,5 @@ jobs: - name: Push changes uses: ad-m/github-push-action@master with: - github_token: ${{ secrets.GITHUB_TOKEN }} + ssh: true branch: 'master'