Unverified Commit 39337477 authored by Julienne Lehmann's avatar Julienne Lehmann Committed by GitHub
Browse files

Create push-to-gitlab.yml

this workflow push all changes of the master branch on github to the default branch of gitlab
you only need to add a secret in your Settings (name=GITLAB_ACCESS_TOKEN)
you need to ask Norman or me for the access token
parent d8ced905
name: Push changes to Gitlab
on: [ push ]
jobs:
job1:
runs-on: ubuntu-latest
steps:
- name: Install Dependencies
run: |
sudo apt-get update && sudo apt-get install -y build-essential\
git
sudo apt-get clean
- name: Push to GitLab
env:
ACCESS_TOKEN: ${{secrets.GITLAB_ACCESS_TOKEN}}
run: |
git clone -b master https://gitlab.hzdr.de/Normo/deepFPlearn.git/
cd deepFPlearn
git config --global user.name $GITHUB_ACTOR
git remote add github https://github.com/yigbt/deepFPlearn.git
git pull github master
git push https://Normo:$ACCESS_TOKEN@gitlab.hzdr.de/Normo/deepFPlearn.git/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment