Use grep -E for macOS compat

This commit is contained in:
Félix Saparelli 2021-05-09 02:19:38 +12:00
parent 8ebbce5516
commit c5c69731c2
1 changed files with 4 additions and 4 deletions

View File

@ -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