Skip to content

Commit

Permalink
ci: add sync to gitlab workflow
Browse files Browse the repository at this point in the history
closes #150
  • Loading branch information
christophwitzko committed Jan 25, 2023
1 parent 1afab2d commit e80e502
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/sync-to-gitlab.yml
@@ -0,0 +1,19 @@
name: Sync to GitLab
on:
push:
branches:
- '**'

jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Sync to GitLab
run: |
git remote add gitlab https://oauth2:${GITLAB_TOKEN}@gitlab.com/go-semantic-release/semantic-release.git
git push gitlab ${{ github.ref_name }} --force
env:
GITLAB_TOKEN: ${{ secrets.GITLAB_PUSH_TOKEN }}

0 comments on commit e80e502

Please sign in to comment.