maxheld83 / ghactions

GitHub actions for R and accompanying R package
https://www.maxheld.de/ghactions/
MIT License
169 stars 17 forks source link

default workflow name is not filename, but file path #346

Open maxheld83 opened 5 years ago

maxheld83 commented 5 years ago
workflow

Wrote support about this:

https://help.github.com/en/articles/workflow-syntax-for-github-actions#name says that when no name: is given, GitHub Actions will use the "workflow's filename". That's not quite the behavior I'm seeing:

That is, in fact, the workflow file path from the root. The same applies to the url to the action status badge: this also requires the entire file path from the repo root: https://github.com/r-lib/ghactions/workflows/.github/workflows/main.yml/badge.svg This is a bit weird:The docs are unclear/wrongit's unclear why this would be so; just using the filename would be more succinct, or the path from ./github/workflows, because by definitions, workflows have to exist in that place.The url for the action status badge, in particular, gets ugly.So, perhaps you could change the docs here or the behavior?

andrewdbond commented 2 years ago

https://help.github.com/en/articles/workflow-syntax-for-github-actions#name says that when no name: is given, GitHub Actions will use the "workflow's filename".

Since at least January of this year (I didn't check further), GitHub changed the text. It now says:

If you omit name, GitHub sets it to the workflow file path relative to the root of the repository.

https://github.com/github/docs/blob/2a58d29f33e31765f517ebd140b8081222d6615a/content/actions/using-workflows/workflow-syntax-for-github-actions.md#name

john-from-qa commented 1 year ago

Even after adding a name to the workflow, github continues to show the filepath as the name under the actions tab.

YoavGro commented 1 year ago

Happens to me also

dsever commented 11 months ago

The same here

endruuu commented 10 months ago

Me too. It was working fine for months, then somehow some of my workflows' name changed to file path. I have put the name since the beginning.

endruuu commented 10 months ago

Those workflows have workflow_dispatch with inputs. After they changed to file path, I cannot run them manually anymore through the web UI.

endruuu commented 10 months ago

My bad. It turns out that the workflows have been modified and there's syntax error there. After fixing the error, the name shows up correctly.

mstrug-rdx commented 7 months ago

I had the same issue, it was caused by adding a colon character in input description field (using quotes for whole description text). After removing colon it works fine.

fatemeh-i commented 6 months ago

I had the same issue, and the reason was the existence of a commented line(#) in my file.

tking16 commented 2 months ago

Issue is open since 2019? Hellooo github team, you there??

khaoulabelabyad commented 1 month ago

Same issue on my project too