Open
Description
Description
Path filters should not be evaluated for tag pushes. Consider the following Workflow definition:
on:
push:
paths:
- foo/**
jobs:
hello:
runs-on: ubuntu-latest
steps:
- run: echo hello
In GitHub, when a tag is pushed, this workflow is always executed.
In Gitea, it is only executed if the path filter applies to the commit referenced by the tag (I think??).
Looking at the source seems to confirm this:
gitea/modules/actions/workflows.go
Lines 313 to 338 in bde014e
The correct behavior is documented here: https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#onpushpull_requestpull_request_targetpathspaths-ignore
Gitea Version
1.23.7
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
Linux
How are you running Gitea?
Official docker image in Kubernetes
Database
PostgreSQL