From c5c69731c2aa51ce0bd24d44a6b526b3d3ba7fe2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Saparelli?= Date: Sun, 9 May 2021 02:19:38 +1200 Subject: [PATCH] Use grep -E for macOS compat --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b3faa6e..30bf204 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -102,7 +102,7 @@ jobs: ext="" [[ "${{ matrix.name }}" == windows-* ]] && ext=".exe" bin="target/${{ matrix.target }}/release/watchexec${ext}" - version=$(grep -oP '[0-9.]+' <<< "${{ github.ref }}") + version=$(grep -oE '[0-9.]+' <<< "${{ github.ref }}") dst="watchexec-${version}-${{ matrix.target }}" mkdir "$dst" strip "$bin" || true @@ -113,7 +113,7 @@ jobs: shell: bash run: | set -euxo pipefail - version=$(grep -oP '[0-9.]+' <<< "${{ github.ref }}") + version=$(grep -oE '[0-9.]+' <<< "${{ github.ref }}") dst="watchexec-${version}-${{ matrix.target }}" tar cavf "$dst.tar.xz" "$dst" - name: Archive (deb) @@ -121,7 +121,7 @@ jobs: shell: bash run: | set -euxo pipefail - version=$(grep -oP '[0-9.]+' <<< "${{ github.ref }}") + version=$(grep -oE '[0-9.]+' <<< "${{ github.ref }}") dst="watchexec-${version}-${{ matrix.target }}" mkdir -p "deb/$dst" cd "deb/$dst" @@ -150,7 +150,7 @@ jobs: shell: bash run: | set -euxo pipefail - version=$(grep -oP '[0-9.]+' <<< "${{ github.ref }}") + version=$(grep -oE '[0-9.]+' <<< "${{ github.ref }}") dst="watchexec-${version}-${{ matrix.target }}" 7z a "$dst.zip" "$dst" - uses: softprops/action-gh-release@v1