mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-14 21:02:49 +00:00
no message
This commit is contained in:
parent
b2f8da500b
commit
27ec2c276a
@ -99,9 +99,13 @@ class IndexController extends InvokeController
|
|||||||
"path" => $genericPath,
|
"path" => $genericPath,
|
||||||
"fileName" => true
|
"fileName" => true
|
||||||
]);
|
]);
|
||||||
if ($res) {
|
if (Base::isSuccess($res)) {
|
||||||
if ($body) {
|
if (in_array($res['data']['name'], ['latest.yml', 'latest-mac.yml']) && $body) {
|
||||||
file_put_contents(public_path($genericPath . "change.md"), $body);
|
$content = <<<EOF
|
||||||
|
releaseNotes: |-
|
||||||
|
$body
|
||||||
|
EOF;
|
||||||
|
file_put_contents($res['data']['file'], $content, FILE_APPEND);
|
||||||
}
|
}
|
||||||
file_put_contents($latestFile, $genericVersion);
|
file_put_contents($latestFile, $genericVersion);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user