File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1818 rm -rf README.*
1919 rm -rf .github/workflows/setup.yml
2020 echo "# ${{ github.event.repository.name }}" > README.md
21+ sed -i "s/%author%/${{ github.repository_owner }}/g" ./plugin/Plugin.php
22+ sed -i "s/%link%/${{ github.event.repository.html_url }}/g" ./plugin/Plugin.php
23+ sed -i "s/%name%/${{ github.event.repository.name }}/g" ./plugin/Plugin.php
24+ sed -i "s/%description%/${{ github.event.description }}/g" ./plugin/Plugin.php
2125
2226 - uses : stefanzweifel/git-auto-commit-action@v4
2327 with :
Original file line number Diff line number Diff line change 11<?php
22
3+ // TODO: Replace the namespace 'Example' to your plugin name.
34namespace TypechoPlugin \Example ;
45
56use Typecho \Plugin \PluginInterface ;
1011}
1112
1213/**
13- * Example plugin.
14+ * %description%
1415 *
15- * @package Example
16- * @author Typecho
16+ * @package %name%
17+ * @author %author%
1718 * @version %version%
18- * @link https://typecho.org
19+ * @link %link%
1920 */
2021class Plugin implements PluginInterface
2122{
You can’t perform that action at this time.
0 commit comments