Skip to content

Commit ae22591

Browse files
authored
Merge pull request #236 from terrestris/add-gh-workflows
Add job to trigger external repository pipeline
2 parents 854721b + 7063f91 commit ae22591

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Trigger GitLab pipeline
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
trigger-gitlab-pipeline:
10+
name: Trigger GitLab pipeline
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Trigger GitLab pipeline 🚀
14+
run: |
15+
curl -X POST \
16+
-F token=${{ secrets.GITLAB_TRIGGER_TOKEN }} \
17+
-F ref=${{ secrets.GITLAB_PROJECT_REF }} \
18+
https://${{ secrets.GITLAB_URL }}/api/v4/projects/${{ secrets.GITLAB_PROJECT_ID }}/trigger/pipeline

0 commit comments

Comments
 (0)