diff options
author | TheBrokenRail <17478432+TheBrokenRail@users.noreply.github.com> | 2024-05-31 07:41:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-31 19:41:44 +0800 |
commit | 972f807ee7d0643b93a776d362ecefc3d5433048 (patch) | |
tree | 6a4064d50f0920c3ed1e049278672b757f0745c8 /docs | |
parent | 572fa55fbcc2cb9418b4f7b981a7c80a11899276 (diff) | |
download | gitea-972f807ee7d0643b93a776d362ecefc3d5433048.tar.gz gitea-972f807ee7d0643b93a776d362ecefc3d5433048.zip |
Fix URL In Gitea Actions Badge Docs (#31191)
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
Diffstat (limited to 'docs')
-rw-r--r-- | docs/content/usage/actions/badge.en-us.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/content/usage/actions/badge.en-us.md b/docs/content/usage/actions/badge.en-us.md index de7a34f4e6..57e5d9d3a1 100644 --- a/docs/content/usage/actions/badge.en-us.md +++ b/docs/content/usage/actions/badge.en-us.md @@ -25,7 +25,7 @@ It is designed to be compatible with [GitHub Actions workflow badge](https://doc You can use the following URL to get the badge: ``` -https://your-gitea-instance.com/{owner}/{repo}/actions/workflows/{workflow_file}?branch={branch}&event={event} +https://your-gitea-instance.com/{owner}/{repo}/actions/workflows/{workflow_file}/badge.svg?branch={branch}&event={event} ``` - `{owner}`: The owner of the repository. |