-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
"Variable" set for gitea action not accessible in job #26309
Comments
|
"secrets" work fine via ${{secrets.VARNAME}} but variables dont |
${{variables.VARNAME}} doesn't work either:
|
I see gitea developers themselves use "secrets" to store the DOCKER_USERNAME, because it doesn't seem to work otherways. Why isn't there a disclaimer in "Variables Management" UI? https://github.com/go-gitea/gitea/actions/runs/5328145644/workflow#L76 |
Finally found #24724 @sillyguodong can you please improve gitea documentation so that it is clear ${{vars.VARNAME}} needs to be used? It should be said both in the UI at |
Not sure why for "Variables" the abbreviation is |
The workflow syntax of Gitea Actions is consistent with Github(see https://docs.github.com/en/actions/learn-github-actions/contexts#vars-context).
Sure |
Description
When setting a custom variable for gitea action in "repo -> settings -> actions -> variables -> "Variables Management"" it is not accessible in the job.
I have tried ${{VARNAME}}, ${{github.VARNAME}}, ${{env.VARNAME}}, and ${{gitea.VARNAME}}.
act_runner is on a different server.
Gitea Version
1.21.0+dev-437-gb9baed2c74
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
archlinux
How are you running Gitea?
installed gitea-git package from archlinux AUR
Database
SQLite
The text was updated successfully, but these errors were encountered: