gitea/modules/actions
Giteabot 35039b8563
Use GitHub Actions compatible globbing for branches, tag, path filter (#22804) (#23740)
Backport #22804 by @ChristopherHX

Replaces the current globbing library with a
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
compatible one.

This adds support for
- `paths-ignore`, `tags-ignore` and `branches-ignore` filters.
- negative patterns in `paths`, `tags` and `branches` filters
- using both `tags` and `paths` filter on the push event

Original PR https://gitea.com/gitea/act/pulls/13.
nektos/act PR https://github.com/nektos/act/pull/1618 for the
workflowpattern package (It can take some months for it to appear in
https://gitea.com/gitea/act)

Related to https://github.com/go-gitea/gitea/issues/13539

Co-authored-by: ChristopherHX <christopher.homberger@web.de>
2023-03-27 14:01:46 -04:00
..
github_test.go Improve workflow event triggers (#23613) (#23648) 2023-03-23 16:34:05 +08:00
github.go Improve workflow event triggers (#23613) (#23648) 2023-03-23 16:34:05 +08:00
log.go
task_state_test.go
task_state.go
workflows.go Use GitHub Actions compatible globbing for branches, tag, path filter (#22804) (#23740) 2023-03-27 14:01:46 -04:00