summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorblue <playbynumbers@gmail.com>2023-04-12 20:05:15 +0100
committerblue <playbynumbers@gmail.com>2023-04-12 20:05:15 +0100
commit55de499f7cdc384a4f4897db47e924ed8a3f56f5 (patch)
tree3f20f292c3259f8735c0d47fefc28dee46c47f03
parente64a5607adb2d99324b869aa2f6080f9ebf07cd4 (diff)
use [[ for matching target
Regex match =~ doesn't work with [
-rw-r--r--.github/workflows/release.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 415f77d..7010d8d 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -134,7 +134,7 @@ jobs:
cp {README.md,LICENSE.md} "$staging/"
cp Documentation/{git-absorb.1,git-absorb.txt} "$staging/doc/"
- if [ "${{ matrix.target }}" =~ .*windows.* ]; then
+ if [[ "${{ matrix.target }}" =~ .*windows.* ]]; then
cp "target/${{ matrix.target }}/release/git-absorb.exe" "$staging/"
7z a "$staging.zip" "$staging"
echo "ASSET=$staging.zip" >> $GITHUB_ENV