Skip to content

Commit e506ac6

Browse files
authored
Fix release action glob exclusion (#1644)
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.
1 parent 88bc63c commit e506ac6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/build.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -557,16 +557,14 @@ jobs:
557557
- uses: softprops/[email protected]
558558
with:
559559
files: |
560-
**/*orangepi5*.xz
561-
**/*rock5*.xz
560+
**/@(*orangepi5*|*rock5*).xz
562561
if: startsWith(github.ref, 'refs/tags/v')
563562
env:
564563
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
565564
- uses: softprops/[email protected]
566565
with:
567566
files: |
568-
**/!(*orangepi5*).xz
569-
**/!(*rock5*).xz
567+
**/!(*orangepi5*|*rock5*).xz
570568
**/*.jar
571569
**/photonlib*.json
572570
**/photonlib*.zip

0 commit comments

Comments
 (0)