We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 352a9e9 commit 9f53c7fCopy full SHA for 9f53c7f
github-actionify.sh
@@ -264,6 +264,9 @@ EOL
264
info "Updating README.md GitHub Action badge"
265
sed "s;travis-ci.*;$domain/$repoSlug/actions/$ciSlugBuildMain/badge.svg)](https://$domain/$repoSlug/actions/$ciSlugBuildMain);g" README.md >"$tmpFile"
266
update README.md 'update README.md badge link'
267
+ elif grep -qF "$domain/$repoSlug/actions/$ciSlugBuildMain/badge.svg" README.md >/dev/null 2>&1
268
+ then
269
+ info "GitHub Action badge already present in README.md"
270
else
271
info "Adding GitHub Action badge to README.md"
272
echo "[](https://$domain/$repoSlug/actions/$ciSlugBuildMain)" >"$tmpFile"
0 commit comments