Skip to content

Gitea actions - workflow in a non-main branch is not executed #33073

Closed
@ruslan-mogilevskiy

Description

@ruslan-mogilevskiy

Description

Step to repro:

  • create the .gitea/workflows/test.yml workflow with any job step and commit it into the main branch
  • create an other branch feature/test-wf from the main and add or change job steps to the .gitea/workflows/test.yml in that branch
  • in gitea UI, trigger the workflow manually (with on: workflow_dispatch) and choose the feature/test-wf branch in the shown popup.
    Note: you need at least 1.23.0-rc0 to run the workflow from Gitea UI.

Expected: the changed test.yml from the feature/test-wf branch is executed
Reality: .gitea/workflows/test.yml from the main branch is executed

Github correctly executes the triggered workflow from the selected branch but Gitea seems not and I didn't find the description of its behaviour in this case.

Gitea Version

1.23-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?

Self-hosted in a host

Database

PostgreSQL

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