From db6f976efc54a7fa33cd9b8f4a0fe3579d73421f Mon Sep 17 00:00:00 2001 From: Mustafa Soylu Date: Fri, 15 Nov 2024 10:27:08 +0100 Subject: [PATCH 1/3] add trigger with current branch --- .github/workflows/gitlab-trigger.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/gitlab-trigger.yml diff --git a/.github/workflows/gitlab-trigger.yml b/.github/workflows/gitlab-trigger.yml new file mode 100644 index 0000000..8e50e94 --- /dev/null +++ b/.github/workflows/gitlab-trigger.yml @@ -0,0 +1,21 @@ +name: Trigger GitLab CI + +on: + push: + branches: + - main + - add_ci_for_fe + +jobs: + trigger_gitlab_ci: + runs-on: ubuntu-latest + + steps: + - name: Trigger GitLab CI for Dev + env: + GITLAB_TRIGGER_URL_DEV: https://codebase.helmholtz.cloud/api/v4/projects/12722/ref/develop/trigger/pipeline + GITLAB_TOKEN: ${{ secrets.GITLAB_TRIGGER_TOKEN }} + run: | + curl -X POST "$GITLAB_TRIGGER_URL_DEV" \ + -F token="$GITLAB_TOKEN" \ + -F ref=develop From bd42e668d6157f8795cd7159cfc1b94503f018a0 Mon Sep 17 00:00:00 2001 From: Mustafa Soylu Date: Fri, 15 Nov 2024 10:48:24 +0100 Subject: [PATCH 2/3] add gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..485dee6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea From 2107dc1c33645471a83e5b4104212b869ee5ca7d Mon Sep 17 00:00:00 2001 From: Mustafa Soylu Date: Fri, 15 Nov 2024 10:48:46 +0100 Subject: [PATCH 3/3] remove test branch set in ci --- .github/workflows/gitlab-trigger.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/gitlab-trigger.yml b/.github/workflows/gitlab-trigger.yml index 8e50e94..3aacd26 100644 --- a/.github/workflows/gitlab-trigger.yml +++ b/.github/workflows/gitlab-trigger.yml @@ -4,7 +4,6 @@ on: push: branches: - main - - add_ci_for_fe jobs: trigger_gitlab_ci: