Skip to content

Incorrect User Count Displayed in Badge for GitHub Action Usage #18

@MathieuSoysal

Description

@MathieuSoysal

Introduction

Currently, I'm programming a GitHub Action to facilitate the publishing of JavaDoc to a static web page.

The GitHub repo link of the GitHub Action: https://github.com/MathieuSoysal/Javadoc-publisher.yml

In this project I have this badge Public workflows that use this action. to show how many GitHub project uses the GitHub Action.

URL of the badge:

https://img.shields.io/endpoint?url=https%3A%2F%2Fapi-endbug.vercel.app%2Fapi%2Fgithub-actions%2Fused-by%3Faction%3DMathieuSoysal%2FJavadoc-publisher%26badge%3Dtrue

The badge uses this data:

https://api-endbug.vercel.app/api/github-actions/used-by?action=MathieuSoysal/Javadoc-publisher&badge=true

Here is the source code of this service: https://github.com/EndBug/api/blob/main/api/github-actions/used-by.ts

Problem

The badge shows 8 users of GitHub Actions but in fact, is 64.

Question

Does someone know how to fix this to show how many repos use a GitHub Action?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions