Skip to content

Commit

Permalink
Use token for authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
roquelopez authored May 29, 2024
1 parent 45e013b commit 9834ad8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/push_gitlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
- name: Push to GitLab
- name: Add GitLab remote and push
env:
GITLAB_URL: ${{ secrets.GITLAB_URL }}
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
run: |
git remote add gitlab $GITLAB_URL
git push gitlab main
git remote add gitlab https://oauth2:$GITLAB_TOKEN@$GITLAB_URL
git push -u gitlab main

0 comments on commit 9834ad8

Please sign in to comment.