Skip to content

Commit 87bb4e9

Browse files
committed
Add GitHub Actions shield
1 parent 4aa73c6 commit 87bb4e9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ScaffoldPackageCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,9 @@ public function package_readme( $args, $assoc_args ) {
252252
$readme_args['shields'] = implode( ' ', $composer_obj['extra']['readme']['shields'] );
253253
} else {
254254
$shields = [];
255+
if ( file_exists( $package_dir . '/.github/workflows/testing.yml' ) ) {
256+
$shields[] = "[![Testing](https://github.com/{$readme_args['package_name']}/actions/workflows/testing.yml/badge.svg)](https://github.com/{$readme_args['package_name']}/actions/workflows/testing.yml)";
257+
}
255258
if ( file_exists( $package_dir . '/.travis.yml' ) ) {
256259
$shields[] = "[![Build Status](https://travis-ci.org/{$readme_args['package_name']}.svg?branch=master)](https://travis-ci.org/{$readme_args['package_name']})";
257260
}

0 commit comments

Comments
 (0)