ghactions icon indicating copy to clipboard operation
ghactions copied to clipboard

default workflow name is not filename, but file path

Open maxheld83 opened this issue 5 years ago • 12 comments

maxheld83 avatar Sep 16 '19 15:09 maxheld83

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?

maxheld83 avatar Sep 16 '19 15:09 maxheld83

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

andrewdbond avatar Sep 03 '22 14:09 andrewdbond

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

john-from-qa avatar May 15 '23 15:05 john-from-qa

Happens to me also

YoavGro avatar Aug 05 '23 06:08 YoavGro

The same here

dsever avatar Dec 22 '23 09:12 dsever

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 avatar Jan 11 '24 14:01 endruuu

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

endruuu avatar Jan 11 '24 14:01 endruuu

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.

endruuu avatar Jan 11 '24 17:01 endruuu