This project shows how to use gitlab-runner-action in a github workflow triggered in a gitlab-job gitlabci
start-crosscicd:
image: alpine
before_script:
- apk add --update curl && rm -rf /var/cache/apk/*
script: |
curl -H "Authorization: token ${GITHUB_TOKEN}" \
-H 'Accept: application/vnd.github.everest-preview+json' \
"https://api.github.com/repos/${GITHUB_REPO}/dispatches" \
-d '{"event_type": "gitlab_trigger_'${CI_PIPELINE_ID}'", "client_payload": {"registration_token": "'${GITLAB_REGISTRATION_TOKEN}'"}}'