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