Skip to content

Commit

Permalink
fix(Github Action): 修复RSA验证
Browse files Browse the repository at this point in the history
  • Loading branch information
Mintimate committed Nov 14, 2023
1 parent deb3404 commit 5740c4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/mirrorToGitLab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ssh-key: ${{ env.SSH_KEY }}
uses: actions/checkout@v4
- name: Prepare to Gitlab repo
run: |
git config --global user.name ${{ env.DEPLOY_USERNAME }}
git config --global user.email ${{ env.DEPLOY_EMAIL }}
git remote add gitlab_mirror ${{ env.DEPLOY_HOST }}
- name: Push files
run: |
git push gitlab_mirror mai
echo "${SSH_KEY}" > private_key.pem
chmod 600 private_key.pem
GIT_SSH_COMMAND="ssh -i private_key.pem" git push gitlab_mirror main

0 comments on commit 5740c4c

Please sign in to comment.