Skip to content

Add badge for Github Actions CI #1877

Closed
@Empty2k12

Description

@Empty2k12

In https://github.com/rust-lang/crates.io/blob/master/src/tests/badge.rs, there should be an action to set a (/ multiple?) Github Actions CI badge(s).

The format of the badge URL can be found here: https://help.github.com/en/github/automating-your-workflow-with-github-actions/configuring-a-workflow#adding-a-workflow-status-badge-to-your-repository

Necessary parameters are OWNER, REPOSITORY, WORKFLOW_NAME or WORKFLOW_FILE_PATH. Optional parameters are branch and event.

This is an example of a Rust Workflow whose badge a user might want to add to crates.io: https://github.com/Empty2k12/rust-github-actions-test/workflows/Rust/badge.svg?branch=master, which looks like

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancement ✨Category: Adding new behavior or a change to the way an existing feature works

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions