Giter Site home page Giter Site logo

Comments (2)

Allofich avatar Allofich commented on June 14, 2024

https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/adding-a-workflow-status-badge has the examples

![example workflow](https://github.com/github/docs/actions/workflows/main.yml/badge.svg)

and

![example branch parameter](https://github.com/github/docs/actions/workflows/main.yml/badge.svg?branch=feature-1)

for an example where the owner is github and the repository name is docs, so I would guess that you can convert your existing line of

## Current status [![Build Status](https://travis-ci.com/afritz1/OpenTESArena.svg?branch=master)](https://travis-ci.com/afritz1/OpenTESArena)

to

## Current status [![Build Status](https://github.com/afritz1/OpenTESArena/actions/workflows/cmake.yml/badge.svg?branch=main)

I'm not sure what you mean by "The badge link should work in a way that makes sense for forks of the repo.", but I assume the line above would point to the latest build on the main branch result for your repository, not the result for build of a fork. My fork of OpenTESArena with the current ## Current status [![Build Status](https://travis-ci.com/afritz1/OpenTESArena.svg?branch=master)](https://travis-ci.com/afritz1/OpenTESArena) line seems to point to the result for your repository, not my fork of it. (By the way, clicking the badge currently will bring you to a "404 Page or file not found" on the Travis CI site)

from opentesarena.

afritz1 avatar afritz1 commented on June 14, 2024

I played around with it some and I'll probably use this:

[![Build Status](https://github.com/afritz1/OpenTESArena/actions/workflows/cmake.yml/badge.svg?branch=main)](https://github.com/afritz1/OpenTESArena/actions)

The fork part was just me remembering forks in the past had links that could've pointed to their own repo (like putting README.txt as the link - GitHub would resolve it for that repo), but pointed back to mine instead. I don't think forks can have their own GitHub Actions but I could be wrong.

Thanks for looking this stuff up Allofich!

from opentesarena.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.