Skip to content

Commit

Permalink
[CI] Use the same grep/cut flags.
Browse files Browse the repository at this point in the history
  • Loading branch information
vyazelenko committed Apr 17, 2024
1 parent 8a786af commit bdfa40b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci-low-cadence.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ jobs:
- name: Extract CMake version
id: extract_cmake_version
run: |
cmake_version=$(grep -P 'BUILD_CMAKE_VERSION=\d.*' cppbuild/cppbuild | cut --delimiter='=' --fields=2)
cmake_version=$(grep -e 'BUILD_CMAKE_VERSION=\d.*' cppbuild/cppbuild | cut -d '=' -f 2)
echo "Output: $cmake_version"
echo "cmake_version=$cmake_version" >> $GITHUB_OUTPUT
- name: Cache CMake directory
Expand Down Expand Up @@ -233,7 +233,7 @@ jobs:
- name: Extract CMake version
id: extract_cmake_version
run: |
cmake_version=$(grep -P 'BUILD_CMAKE_VERSION=\d.*' cppbuild/cppbuild | cut --delimiter='=' --fields=2)
cmake_version=$(grep -e 'BUILD_CMAKE_VERSION=\d.*' cppbuild/cppbuild | cut -d '=' -f 2)
echo "Output: $cmake_version"
echo "cmake_version=$cmake_version" >> $GITHUB_OUTPUT
- name: Cache CMake directory
Expand Down Expand Up @@ -352,7 +352,7 @@ jobs:
- name: Extract CMake version
id: extract_cmake_version
run: |
cmake_version=$(grep -P 'BUILD_CMAKE_VERSION=\d.*' cppbuild/cppbuild | cut --delimiter='=' --fields=2)
cmake_version=$(grep -e 'BUILD_CMAKE_VERSION=\d.*' cppbuild/cppbuild | cut -d '=' -f 2)
echo "Output: $cmake_version"
echo "cmake_version=$cmake_version" >> $GITHUB_OUTPUT
- name: Cache CMake directory
Expand Down Expand Up @@ -421,7 +421,7 @@ jobs:
- name: Extract CMake version
id: extract_cmake_version
run: |
cmake_version=$(grep -P 'BUILD_CMAKE_VERSION=\d.*' cppbuild/cppbuild | cut --delimiter='=' --fields=2)
cmake_version=$(grep -e 'BUILD_CMAKE_VERSION=\d.*' cppbuild/cppbuild | cut -d '=' -f 2)
echo "Output: $cmake_version"
echo "cmake_version=$cmake_version" >> $GITHUB_OUTPUT
- name: Cache CMake directory
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ jobs:
- name: Extract CMake version
id: extract_cmake_version
run: |
cmake_version=$(grep -P 'BUILD_CMAKE_VERSION=\d.*' cppbuild/cppbuild | cut --delimiter='=' --fields=2)
cmake_version=$(grep -e 'BUILD_CMAKE_VERSION=\d.*' cppbuild/cppbuild | cut -d '=' -f 2)
echo "Output: $cmake_version"
echo "cmake_version=$cmake_version" >> $GITHUB_OUTPUT
- name: Cache CMake directory
Expand Down Expand Up @@ -279,7 +279,7 @@ jobs:
- name: Extract CMake version
id: extract_cmake_version
run: |
cmake_version=$(grep -P 'BUILD_CMAKE_VERSION=\d.*' cppbuild/cppbuild | cut --delimiter='=' --fields=2)
cmake_version=$(grep -e 'BUILD_CMAKE_VERSION=\d.*' cppbuild/cppbuild | cut -d '=' -f 2)
echo "Output: $cmake_version"
echo "cmake_version=$cmake_version" >> $GITHUB_OUTPUT
- name: Cache CMake directory
Expand Down Expand Up @@ -354,7 +354,7 @@ jobs:
- name: Extract CMake version
id: extract_cmake_version
run: |
cmake_version=$(grep -P 'BUILD_CMAKE_VERSION=\d.*' cppbuild/cppbuild | cut --delimiter='=' --fields=2)
cmake_version=$(grep -e 'BUILD_CMAKE_VERSION=\d.*' cppbuild/cppbuild | cut -d '=' -f 2)
echo "Output: $cmake_version"
echo "cmake_version=$cmake_version" >> $GITHUB_OUTPUT
- name: Cache CMake directory
Expand Down Expand Up @@ -404,7 +404,7 @@ jobs:
- name: Extract CMake version
id: extract_cmake_version
run: |
cmake_version=$(grep -P 'BUILD_CMAKE_VERSION=\d.*' cppbuild/cppbuild | cut --delimiter='=' --fields=2)
cmake_version=$(grep -e 'BUILD_CMAKE_VERSION=\d.*' cppbuild/cppbuild | cut -d '=' -f 2)
echo "Output: $cmake_version"
echo "cmake_version=$cmake_version" >> $GITHUB_OUTPUT
- name: Cache CMake directory
Expand Down Expand Up @@ -457,7 +457,7 @@ jobs:
- name: Extract CMake version
id: extract_cmake_version
run: |
cmake_version=$(grep -P 'BUILD_CMAKE_VERSION=\d.*' cppbuild/cppbuild | cut --delimiter='=' --fields=2)
cmake_version=$(grep -e 'BUILD_CMAKE_VERSION=\d.*' cppbuild/cppbuild | cut -d '=' -f 2)
echo "Output: $cmake_version"
echo "cmake_version=$cmake_version" >> $GITHUB_OUTPUT
- name: Cache CMake directory
Expand Down Expand Up @@ -528,7 +528,7 @@ jobs:
- name: Extract CMake version
id: extract_cmake_version
run: |
cmake_version=$(grep -P 'BUILD_CMAKE_VERSION=\d.*' cppbuild/cppbuild | cut --delimiter='=' --fields=2)
cmake_version=$(grep -e 'BUILD_CMAKE_VERSION=\d.*' cppbuild/cppbuild | cut -d '=' -f 2)
echo "Output: $cmake_version"
echo "cmake_version=$cmake_version" >> $GITHUB_OUTPUT
- name: Cache CMake directory
Expand Down Expand Up @@ -608,7 +608,7 @@ jobs:
- name: Extract CMake version
id: extract_cmake_version
run: |
cmake_version=$(grep -P 'BUILD_CMAKE_VERSION=\d.*' cppbuild/cppbuild | cut --delimiter='=' --fields=2)
cmake_version=$(grep -e 'BUILD_CMAKE_VERSION=\d.*' cppbuild/cppbuild | cut -d '=' -f 2)
echo "Output: $cmake_version"
echo "cmake_version=$cmake_version" >> $GITHUB_OUTPUT
- name: Cache CMake directory
Expand Down

0 comments on commit bdfa40b

Please sign in to comment.