Skip to content

ref_name in actions sometimes blank for scheduled jobs #27678

Closed
@nephatrine

Description

@nephatrine

Description

When my actions jobs are running, both ${{ gitea.ref_name }} and ${GITHUB_REF##*/} are empty for some repositories when running from the cron schedule (but work fine during push trigger). When I tried to make a new repo with a minimal test, I was unable to reproduce this issue but it is consistently the case for my existing repos. I slowly built up that minimal example until it was essentially the same as my existing job and it still returned the correct result. I've ran this instance for a while and so those existing repos were created in earlier gitea versions and that's the only thing I can think of that would make them different than a new repo. Any idea on what could cause this behavior and if there is something specific I need to look for and correct in the database maybe for those repos migrated from earlier versions?

Gitea Version

1.21.0-rc1

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

2.40

Operating System

alpine:latest

How are you running Gitea?

self-built in a docker container

Database

SQLite

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtopic/gitea-actionsrelated to the actions of Giteatype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions