Skip to content

Commit db6f976

Browse files
committed
add trigger with current branch
1 parent b8f5574 commit db6f976

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Trigger GitLab CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- add_ci_for_fe
8+
9+
jobs:
10+
trigger_gitlab_ci:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Trigger GitLab CI for Dev
15+
env:
16+
GITLAB_TRIGGER_URL_DEV: https://codebase.helmholtz.cloud/api/v4/projects/12722/ref/develop/trigger/pipeline
17+
GITLAB_TOKEN: ${{ secrets.GITLAB_TRIGGER_TOKEN }}
18+
run: |
19+
curl -X POST "$GITLAB_TRIGGER_URL_DEV" \
20+
-F token="$GITLAB_TOKEN" \
21+
-F ref=develop

0 commit comments

Comments
 (0)