Skip to content

ci: push all changes to gitlab.com mirror (#57) #10

ci: push all changes to gitlab.com mirror (#57)

ci: push all changes to gitlab.com mirror (#57) #10

Workflow file for this run

name: mirror
on:
push:
branches: [main]
tags: ["*"]
jobs:
gitlab.com:

Check failure on line 8 in .github/workflows/mirror.yaml

View workflow run for this annotation

GitHub Actions / mirror

Invalid workflow file

The workflow is not valid. .github/workflows/mirror.yaml (Line: 8, Col: 3): The identifier 'gitlab.com' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters.
runs-on: ubuntu-latest
env:
REMOTE: mirror
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# Need all to fetch all tags so we can push them
fetch-depth: 0
- name: Add Remote
env:
CLONE_URL: "https://releaser-pleaser:${{ secrets.GITLAB_COM_PUSH_TOKEN }}@gitlab.com/apricote/releaser-pleaser.git"
run: git remote add $REMOTE $CLONE_URL
- name: Push Branches
run: git push --force --all --verbose $REMOTE
- name: Push Tags
run: git push --force --tags --verbose $REMOTE