Trigger gitlab CI when pushing to github #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: trigger-gitlab-ci | ||
run-name: ${{ github.event_name }} triggered by ${{ github.actor }} | ||
on: [push] | ||
job: | ||
trigger-gitlab-ci: | ||
runs-on: debian-latest | ||
steps: | ||
- name: Trigger CI | ||
run: curl -X POST --fail -F token=${{ secrets.TRIGGER_GITLAB_CI }} -F ref=${{ github.GITHUB_REF }} https://gitlab.com/api/v4/projects/42797718/trigger/pipeline |