Skip to content

"run-name:" not working within action to define the name of the run #34247

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
laitco opened this issue Apr 19, 2025 · 5 comments
Open

"run-name:" not working within action to define the name of the run #34247

laitco opened this issue Apr 19, 2025 · 5 comments
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail topic/gitea-actions related to the actions of Gitea type/bug

Comments

@laitco
Copy link

laitco commented Apr 19, 2025

Description

Hi!

i dont now if it is a bug or Layer7. I cannot get it working to define a fixed run name like it is done within the blog "https://blog.gitea.com/hacking-on-gitea-actions/".

name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:

When i am adding run-name it is still showing the commit message.

Am i doing something wrong or can someone help?

Not reproducable in demo, because CI/CD.

Gitea Version

1.23.7

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Linux

How are you running Gitea?

Docker

Database

SQLite

@Zettat123 Zettat123 added the topic/gitea-actions related to the actions of Gitea label Apr 19, 2025
@lunny
Copy link
Member

lunny commented Apr 24, 2025

Can you reproduce it in https://demo.gitea.com ?

@lunny lunny added the issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail label Apr 24, 2025
@laitco
Copy link
Author

laitco commented Apr 24, 2025

Hi @lunny!

Yes.

Test-Repo:
https://demo.gitea.com/laitco/run-name-issue

Screens:

Image

Image

Image

@badhezi
Copy link
Contributor

badhezi commented Apr 27, 2025

From what I personally remember this used to work but for the life of me i can't get it to work locally.
I also don't see how this will ever work the way we currently handle the creation of an action job run.

Title: strings.SplitN(commit.CommitMessage, "\n", 2)[0],

@lunny / @Zettat123 I can take the implementation of this if this actually needs implementing.

To my understanding we need to modify this part of act code to include run-name

Also how do we go about expanding ${{ gitea.* }} variables in server?

thanks.

@badhezi
Copy link
Contributor

badhezi commented Apr 28, 2025

Created a preliminary PR for this, would love to get feedback
#34301

@badhezi
Copy link
Contributor

badhezi commented May 1, 2025

I believe this can be resolved soon, waiting for review on
https://gitea.com/gitea/act/pulls/136
and #34301
@lunny

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail topic/gitea-actions related to the actions of Gitea type/bug
Projects
None yet
Development

No branches or pull requests

4 participants