Skip to content

Commit

Permalink
Fix release action glob exclusion (#1644)
Browse files Browse the repository at this point in the history
In softprops/action-gh-release, when using an glob pattern to exclude files, all of the files to exclude must be specified on one line. Splitting them to multiple lines causes all files to match one of the two lines. 

To combine on one line, use `|` between the patterns.
  • Loading branch information
crschardt authored Dec 20, 2024
1 parent 88bc63c commit e506ac6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -557,16 +557,14 @@ jobs:
- uses: softprops/[email protected]
with:
files: |
**/*orangepi5*.xz
**/*rock5*.xz
**/@(*orangepi5*|*rock5*).xz
if: startsWith(github.ref, 'refs/tags/v')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: softprops/[email protected]
with:
files: |
**/!(*orangepi5*).xz
**/!(*rock5*).xz
**/!(*orangepi5*|*rock5*).xz
**/*.jar
**/photonlib*.json
**/photonlib*.zip
Expand Down

0 comments on commit e506ac6

Please sign in to comment.