Skip to content

Commit b8a1fb2

Browse files
committed
add gen chlog action
1 parent c398922 commit b8a1fb2

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/php.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,13 @@ jobs:
5050
- name: Install dependencies
5151
run: composer update --no-progress
5252

53-
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
54-
# Docs: https://getcomposer.org/doc/articles/scripts.md
53+
- name: Generate changelog file
54+
id: changelog
55+
if: ${{ matrix.os == 'ubuntu-latest' }}
56+
run: |
57+
wget -c https://github.com/inhere/kite/releases/download/v1.1.9/kite-v1.1.9.phar -O kite.phar
58+
php kite.phar git cl last head --style gh-release --no-merges --fetch-tags --unshallow --file changelog.md
59+
cat changelog.md
5560
5661
# phpunit -v --debug
5762
- name: Run test suite
@@ -60,7 +65,7 @@ jobs:
6065
php example/sflags-demo.php
6166
phpdbg -qrr $(which phpunit) --coverage-clover ./test/clover.info
6267
63-
- name: Coveralls Parallel
68+
- name: Coveralls parallel
6469
uses: coverallsapp/github-action@master
6570
if: ${{ matrix.os == 'ubuntu-latest' }}
6671
with:

0 commit comments

Comments
 (0)