Skip to content

Commit 273440a

Browse files
committed
fix setup steps
1 parent be6b6d0 commit 273440a

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/setup.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ jobs:
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:

plugin/Plugin.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22

3+
// TODO: Replace the namespace 'Example' to your plugin name.
34
namespace TypechoPlugin\Example;
45

56
use Typecho\Plugin\PluginInterface;
@@ -10,12 +11,12 @@
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
*/
2021
class Plugin implements PluginInterface
2122
{

0 commit comments

Comments
 (0)