Skip to content

删了一些没用的东西 #15

删了一些没用的东西

删了一些没用的东西 #15

Workflow file for this run

name: Push to GitLab
on: push
jobs:
push_gitlab:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # 确保获取完整的仓库历史
- name: Set up Git
run: |
git config --global user.name "GitHub Action"
git config --global user.email "action@github.com"
- name: Push to GitLab
run: |
# 使用 HTTPS URL 和 PAT
git remote add gitlab https://Elflare:${{ secrets.GITLAB_TOKEN }}@gitlab.com/Elflare/zrlong.git
git fetch gitlab
git push gitlab HEAD:main --force # 强制推送到GitLab的main分支
env:
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }} # 使用秘密环境变量