Skip to content

Commit

Permalink
Add ssh settings
Browse files Browse the repository at this point in the history
  • Loading branch information
roquelopez authored May 29, 2024
1 parent f80704f commit 28629fc
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/push_gitlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ jobs:
run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
git config --global http.postBuffer 157286400 # 150 MB
- name: Add GitLab SSH key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.GITLAB_SSH_PRIVATE_KEY }}

- name: Add GitLab remote and push
env:
GITLAB_URL: ${{ secrets.GITLAB_URL }}
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
run: |
git remote set-url origin https://oauth2:$GITLAB_TOKEN@$GITLAB_URL
git push origin main
git remote add gitlab [email protected]:nyu/tim-reasoning.git
git push -u gitlab main

0 comments on commit 28629fc

Please sign in to comment.