Skip to content

gitea.event_name set to push when running scheduled #27667

Closed
@nephatrine

Description

@nephatrine

Description

I have a workflow that runs both on push and on a cron schedule. When I echo ${{ gitea.event_name }} though it shows push both when I push it out and when it runs due to the schedule. From what I can tell, GitHub sets the event_name to schedule when running from a schedule so I expected Gitea to work similarly.

Is this a bug? If not, is there an alternate means to have a workflow detect which trigger it is running under?

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?

Gitea self-built and running on a docker image. Recently "updated" from 1.20.5 to 1.21.0-rc1 to for the cron actions.

Database

SQLite

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions