From 9e215b7b327a9fa5c0aa1e0bccc655e9e8f186bc Mon Sep 17 00:00:00 2001 From: amtoine Date: Fri, 17 Nov 2023 17:27:13 +0100 Subject: [PATCH 1/2] don't set the push URL --- .github/actions/sync_action/action.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/actions/sync_action/action.yml b/.github/actions/sync_action/action.yml index fcdeb8f6..a19d6dd5 100644 --- a/.github/actions/sync_action/action.yml +++ b/.github/actions/sync_action/action.yml @@ -48,9 +48,7 @@ runs: working-directory: /tmp/nu-git-manager - name: "Push to remote" - run: | - git remote set-url origin git@github.com:amtoine/nu-git-manager.git - git push origin nightly + run: git push origin nightly shell: bash working-directory: /tmp/nu-git-manager if: ${{ inputs.do_push == 'true' && !env.ACT }} From ce7a202cf1739ddb113e16565cc9fc72dae4fab0 Mon Sep 17 00:00:00 2001 From: amtoine Date: Fri, 17 Nov 2023 17:27:28 +0100 Subject: [PATCH 2/2] setup `ssh-key` for `actions/checkout` --- .github/workflows/sync_nightly.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/sync_nightly.yml b/.github/workflows/sync_nightly.yml index 543aa847..5310cd62 100644 --- a/.github/workflows/sync_nightly.yml +++ b/.github/workflows/sync_nightly.yml @@ -11,6 +11,8 @@ jobs: if: github.event.pull_request.merged == true steps: - uses: actions/checkout@v3 + with: + ssh-key: ${{ github.token }} - uses: ./.github/actions/sync_action with: