From e506ac6b28d382e490fdd3960e194e9ecb9b7661 Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Fri, 20 Dec 2024 17:11:13 -0600 Subject: [PATCH] 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. --- .github/workflows/build.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2d5ebfbc0..2d05d534c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -557,16 +557,14 @@ jobs: - uses: softprops/action-gh-release@v2.0.9 with: files: | - **/*orangepi5*.xz - **/*rock5*.xz + **/@(*orangepi5*|*rock5*).xz if: startsWith(github.ref, 'refs/tags/v') env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - uses: softprops/action-gh-release@v2.0.9 with: files: | - **/!(*orangepi5*).xz - **/!(*rock5*).xz + **/!(*orangepi5*|*rock5*).xz **/*.jar **/photonlib*.json **/photonlib*.zip