From 4c00a4526c57bd9683b328cff6ccb0446f99567c Mon Sep 17 00:00:00 2001 From: Antoine Stevan <44101798+amtoine@users.noreply.github.com> Date: Fri, 17 Nov 2023 17:32:43 +0100 Subject: [PATCH] fix sync CI by giving SSH token to `actions/checkout` (#90) as per title, reverts #89 --- .github/actions/sync_action/action.yml | 4 +--- .github/workflows/sync_nightly.yml | 2 ++ 2 files changed, 3 insertions(+), 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 }} 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: