initial commit
This commit is contained in:
+39
@@ -0,0 +1,39 @@
|
||||
[
|
||||
{
|
||||
"id": "release",
|
||||
"execute-command": "@pigeon@",
|
||||
"include-command-output-in-response": false,
|
||||
"pass-arguments-to-command": [
|
||||
{ "source": "payload", "name": "project.id" },
|
||||
{ "source": "payload", "name": "project.namespace" },
|
||||
{ "source": "payload", "name": "project.name" },
|
||||
{ "source": "payload", "name": "commit.id" },
|
||||
{ "source": "payload", "name": "tag" }
|
||||
],
|
||||
"trigger-rule": {
|
||||
"and": [
|
||||
{
|
||||
"match": {
|
||||
"type": "value",
|
||||
"parameter": { "source": "header", "name": "X-Gitlab-Event" },
|
||||
"value": "Release Hook"
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"type": "value",
|
||||
"parameter": { "source": "payload", "name": "action" },
|
||||
"value": "create"
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"type": "value",
|
||||
"parameter": { "source": "header", "name": "X-Gitlab-Token" },
|
||||
"value": "{{ getenv `PIGEON_GITLAB_SECRET` | js }}"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user