]> source.dussan.org Git - gitea.git/commit
Fix URL In Gitea Actions Badge Docs (#31191) (#31198)
authorGiteabot <teabot@gitea.io>
Fri, 31 May 2024 13:08:04 +0000 (21:08 +0800)
committerGitHub <noreply@github.com>
Fri, 31 May 2024 13:08:04 +0000 (21:08 +0800)
commit1987c86f3ce8335a3c1f4754b37872c3ca137b3d
treeb0a9675ed92350aa4c099109c68cebf7c6ce4518
parentc6176ee59f4a25607dcfbc00757121f705101101
Fix URL In Gitea Actions Badge Docs (#31191) (#31198)

Backport #31191 by @TheBrokenRail

The example URL given in the documentation leads to a 404.

For instance,
`https://your-gitea-instance.com/{owner}/{repo}/actions/workflows/{workflow_file}?branch={branch}&event={event}`
translates to
`https://gitea.thebrokenrail.com/minecraft-pi-reborn/minecraft-pi-reborn/actions/workflows/build.yml`,
which is a 404.

I had to check the [linked GitHub
docs](https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/adding-a-workflow-status-badge)
to learn that you have to add `/badge.svg` to the URL.

Example:
https://gitea.thebrokenrail.com/minecraft-pi-reborn/minecraft-pi-reborn/actions/workflows/build.yml/badge.svg

Co-authored-by: TheBrokenRail <17478432+TheBrokenRail@users.noreply.github.com>
docs/content/usage/actions/badge.en-us.md