Skip to content

Commit

Permalink
fix sync CI by giving SSH token to actions/checkout (#90)
Browse files Browse the repository at this point in the history
as per title, reverts #89
  • Loading branch information
amtoine authored Nov 17, 2023
1 parent 805867a commit 4c00a45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/actions/sync_action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 2 additions & 0 deletions .github/workflows/sync_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4c00a45

Please sign in to comment.