From 5030aad121bc20819a792e0c3df5a9e8b24b8274 Mon Sep 17 00:00:00 2001 From: Nick Date: Wed, 28 Dec 2022 19:27:33 +0000 Subject: [PATCH] :alien: Fix GitHub workflow badge URL See `badges / shields #8671`. --- README.md | 6 ++++-- templates/base/README.md | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 45d2e18..f1c1ef8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # create-elm-package -[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/MethodGrab/create-elm-package/CI?style=flat-square)](https://github.com/MethodGrab/create-elm-package/actions/workflows/CI.yaml) +[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/MethodGrab/create-elm-package/CI.yaml?branch=main&style=flat-square)](https://github.com/MethodGrab/create-elm-package/actions/workflows/CI.yaml) [![npm version](https://img.shields.io/npm/v/create-elm-package?style=flat-square)](https://www.npmjs.com/package/create-elm-package) > An [npm initializer](https://docs.npmjs.com/cli/commands/npm-init) for creating new [Elm](https://elm-lang.org) packages. @@ -25,7 +25,9 @@ Please review the generated code before using it to ensure it meets your needs a - Automatically publish new versions using [`elm-publish-action`](https://github.com/dillonkearns/elm-publish-action). Note the initial version 1.0.0 must be published manually. -Note the GitHub workflow assumes your default branch is called `main`. If that's not the case, you can update the 2 references to `main` at the top of `.github/workflows/CI.yaml` after you run the initializer. +Note the GitHub workflow assumes your default branch is called `main`. If that's not the case, you should update the following places after you run the initializer: +- The 2 references to `main` at the top of `.github/workflows/CI.yaml`. +- `?branch=main` in the _GitHub Workflow Status_ badge URL in `README.md`. ## Development diff --git a/templates/base/README.md b/templates/base/README.md index 89f8be7..d3d6717 100644 --- a/templates/base/README.md +++ b/templates/base/README.md @@ -1,6 +1,6 @@ # {{PACKAGE_NAME}} -[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/{{PACKAGE_OWNER}}/{{PACKAGE_NAME}}/CI?style=flat-square)](https://github.com/{{PACKAGE_OWNER}}/{{PACKAGE_NAME}}/actions/workflows/CI.yaml) +[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/{{PACKAGE_OWNER}}/{{PACKAGE_NAME}}/CI.yaml?branch=main&style=flat-square)](https://github.com/{{PACKAGE_OWNER}}/{{PACKAGE_NAME}}/actions/workflows/CI.yaml) [![Elm package](https://img.shields.io/elm-package/v/{{PACKAGE_OWNER}}/{{PACKAGE_NAME}}?style=flat-square)](https://package.elm-lang.org/packages/{{PACKAGE_OWNER}}/{{PACKAGE_NAME}}/latest) > {{SUMMARY}}