Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
webhook-test-zsy
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张思远
webhook-test-zsy
Commits
2e0eb9e2
Commit
2e0eb9e2
authored
Dec 21, 2023
by
张思远
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a
parent
e58a7da4
Pipeline
#171
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
webhook.php
webhook.php
+3
-3
No files found.
webhook.php
View file @
2e0eb9e2
...
@@ -5,12 +5,12 @@ $post = file_get_contents("php://input");
...
@@ -5,12 +5,12 @@ $post = file_get_contents("php://input");
$post
=
json_decode
(
$post
,
true
);
$post
=
json_decode
(
$post
,
true
);
if
(
strpos
(
strtoupper
(
PHP_OS
),
'WIN'
)
===
0
)
{
if
(
strpos
(
strtoupper
(
PHP_OS
),
'WIN'
)
===
0
)
{
$project
=
$post
[
'project'
];
//
$project = $post['project'];
$web_url
=
$project
[
'web_url'
];
//
$web_url = $project['web_url'];
$dir
=
__DIR__
;
$dir
=
__DIR__
;
$cmd
=
't.bat '
.
$dir
.
' '
.
$web_url
;
$cmd
=
't.bat '
.
$dir
;
}
else
{
}
else
{
$cmd
=
'bash t.sh'
;
$cmd
=
'bash t.sh'
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment