Skip to content
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

Gitea Actions environment variables: GITHUB_REF_NAME and GITHUB_REF_TYPE is wrong #25816

Closed
noetzold opened this issue Jul 10, 2023 · 1 comment
Labels

Comments

@noetzold
Copy link

Description

GITHUB_REF is "refs/heads/master"
that is OK, but
GITHUB_REF_NAME is "refs/heads/master" it
Should only be "master"

GITHUB_REF_TYPE should "branch" or "tag" but is "heads"
See: https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables

I’m using a PowerShell runner but should make no difference

      - name: test
        run: |
              Write-Output "GITHUB_REF_NAME $Env:GITHUB_REF_NAME"
              Write-Output "GITHUB_REF $Env:GITHUB_REF"
              Write-Output "GITHUB_REF_TYPE $Env:GITHUB_REF_TYPE"

image

Gitea Version

1.20.0+rc0

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Runs from Docker

Database

None

@lunny
Copy link
Member

lunny commented Jul 11, 2023

This has been fixed by #25367

@lunny lunny closed this as completed Jul 11, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants