forked from privacyidea/privacyidea
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (24 loc) · 804 Bytes
/
gitlab-trigger.yml
File metadata and controls
28 lines (24 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Trigger GitLab on Tag
on:
push:
tags:
- '*'
# No permissions needed for this action
permissions: {}
jobs:
trigger-gitlab:
name: Trigger internal GitLab pipeline
runs-on: ubuntu-latest
steps:
- name: Trigger GitLab pipeline
env:
GITLAB_TRIGGER_URL: https://lucan.netknights.it/api/v4/projects/3/trigger/pipeline
GITLAB_TRIGGER_TOKEN: ${{ secrets.GITLAB_TRIGGER_TOKEN }}
GITHUB_TAG: ${{ github.ref_name }}
GITHUB_REPO_URL: https://github.com/${{ github.repository }}.git
run: |
curl -X POST "$GITLAB_TRIGGER_URL" \
-F token="$GITLAB_TRIGGER_TOKEN" \
-F ref=main \
-F variables[GITHUB_TAG]="$GITHUB_TAG" \
-F variables[GITHUB_REPO]="$GITHUB_REPO_URL"