mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
misc(_release.php): Added automatic CHANGELOG.md
update (#1933)
This commit is contained in:
parent
eecfc44046
commit
867359a89e
1 changed files with 4 additions and 1 deletions
|
@ -105,6 +105,9 @@ if ($bytesWritten === 0) {
|
||||||
|
|
||||||
out("\n- Config file has been updated!", 'success');
|
out("\n- Config file has been updated!", 'success');
|
||||||
|
|
||||||
|
// Update CHANGELOG.md
|
||||||
|
runProcess('npx git-cliff v2.4.5-rc.2.. --config cliff.toml --tag "' . $version . '" > CHANGELOG.md');
|
||||||
|
|
||||||
// Git add & commit
|
// Git add & commit
|
||||||
runProcess('git add -A && git commit -m "release: ' . escapeshellarg($version) . '"');
|
runProcess('git add -A && git commit -m "release: ' . escapeshellarg($version) . '"');
|
||||||
|
|
||||||
|
@ -119,4 +122,4 @@ runProcess("git tag -v \"$version\"");
|
||||||
runProcess("git push origin master");
|
runProcess("git push origin master");
|
||||||
runProcess("git push origin $version");
|
runProcess("git push origin $version");
|
||||||
|
|
||||||
out("\n- Release $version has been successfully prepared and committed!", 'success');
|
out("\n- Release $version has been successfully prepared, committed and pushed!", 'success');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue