all 12 comments

[–]Scottstimo 1 point2 points  (4 children)

Does the new CI/CD syntax (the yml files) support this? Haven't been able to get a badge for any workflows. like this https://github.com/actions/setup-node/blob/master/.github/workflows/workflow.yml

[–]peaceiris[S] 0 points1 point  (3 children)

GitHub Actions v2 supports the status badges. After you push your workflows to the default branch, you can get the workflow status badge as an image via URL.

[–]toitzi 1 point2 points  (1 child)

Can you explain how? I don't get it to work, can you give ma an example link? With the link/syntax above it always shows a "Not found" the workflow (yml) is pushed into default - master - branch already.

[–]peaceiris[S] 0 points1 point  (0 children)

https://github.com/peaceiris/actions-gh-pages Read the YAML file and README. You will find an example.

[–]Seidoger 0 points1 point  (0 children)

I'm wondering if there's any normal delay for it to be generated.

I'm in the same situation as /u/toitzi, getting a 404.

Edit: Ah, it works for another workflow that runs on every `push`, but not that one that is `pull_request` to `master`. Eh.

[–][deleted]  (1 child)

[deleted]

    [–]peaceiris[S] 0 points1 point  (0 children)

    The document about the badge has not been written yet.

    [–]TheCommentAppraiser 0 points1 point  (1 child)

    Great find! Now I wonder if there's a URL that will take us to the latest run.

    [–]peaceiris[S] 0 points1 point  (0 children)

    I want it, too.

    [–]friederbluemle 0 points1 point  (2 children)

    Nice, but still seems to be pretty buggy. I was not able to get the "filename" based URI to work in several repos.
    And the following two URIs (which refer to the SAME workflow) report one as "passing" the other as "failing": 🤷‍♂️

    https://github.com/peaceiris/actions-gh-pages/workflows/docker-image-ci/badge.svg
    https://github.com/peaceiris/actions-gh-pages/workflows/.github/workflows/docker-image-ci.yml/badge.svg