softprops / action-gh-release

📦 :octocat: GitHub Action for creating GitHub Releases

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

File Pattern Negation

Supermarcel10 opened this issue · comments

I haven't been able to find any documentation if there exists a way to negate elements in the files section of the workflow.

The idea being is that you can bulk select an entire selection of files for the workflow, but deselect specific selections (similar to how .gitignore works). Or alternatively a way to use regex where I can say that I want all jar files without a specific string.

Usage:

files: |
            build/libs/*.jar
            !build/libs/*-unshaded.jar

Thrown warning:
🤔 Pattern '!build/libs/*-unshaded.jar' does not match any files.

What I want to achieve with this, is add all built jar files from my modules, without their -unshaded versions.