]> source.dussan.org Git - gitea.git/commit
Use GitHub Actions compatible globbing for `branches`, `tag`, `path` filter (#22804)
authorChristopherHX <christopher.homberger@web.de>
Mon, 27 Mar 2023 08:27:40 +0000 (10:27 +0200)
committerGitHub <noreply@github.com>
Mon, 27 Mar 2023 08:27:40 +0000 (16:27 +0800)
commit6840258c9593c0b8ffaf88af0e239d03ed2314d2
tree30a78ec0dbd208615f8029d2aeecc4aff5dd7767
parente6e602fd8d35471f1e2f4a42669a1f17e76e0176
Use GitHub Actions compatible globbing for `branches`, `tag`, `path` filter (#22804)

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
modules/actions/workflows.go