Skip to content

Update mirror-to-gitlab.yml #4

Update mirror-to-gitlab.yml

Update mirror-to-gitlab.yml #4

name: Mirror to GitLab
on:
push:
branches: ['**']
tags: ['**']
release:
types: [published]
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- name: Checkout (full history)
uses: actions/checkout@v4.2.2
with:
fetch-depth: 0 # complete history including tags
- name: Mirror to GitLab
env:
GITLAB_URL: ${{ secrets.GITLAB_URL }}
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
run: |
git remote add gitlab "https://oauth2:${GITLAB_TOKEN}@${GITLAB_URL#https://}"
git push gitlab --all --force
git push gitlab --tags --force