Skip to content

Commit f6376dc

Browse files
committed
[actions] Fix postgres version regex
1 parent 56f3258 commit f6376dc

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

.github/workflows/boost_version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
- name: Get postgres version
7474
run: |
7575
sudo service postgresql start
76-
pgver=$(psql --version | grep -Po '(?<=psql \(PostgreSQL\) )[^;]+(?=\.\d \()')
76+
pgver=$(psql --version | grep -Po '(?<=psql \(PostgreSQL\) )[^;]+(?=\.\d+ \()')
7777
echo "PGVER=${pgver}" >> $GITHUB_ENV
7878
echo "PGIS=3" >> $GITHUB_ENV
7979
PG_USER=$(whoami)

.github/workflows/check-queries.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
- name: get postgres version
6262
run: |
6363
sudo service postgresql start
64-
PGVER=$(psql --version | grep -Po '(?<=psql \(PostgreSQL\) )[^;]+(?=\.\d \()')
64+
PGVER=$(psql --version | grep -Po '(?<=psql \(PostgreSQL\) )[^;]+(?=\.\d+ \()')
6565
echo "PGVER=${PGVER}" >> $GITHUB_ENV
6666
echo "PGPORT=5432" >> $GITHUB_ENV
6767
echo "PGIS=3" >> $GITHUB_ENV

.github/workflows/clang.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
- name: Get postgres version
5959
run: |
6060
sudo service postgresql start
61-
pgver=$(psql --version | grep -Po '(?<=psql \(PostgreSQL\) )[^;]+(?=\.\d \()')
61+
pgver=$(psql --version | grep -Po '(?<=psql \(PostgreSQL\) )[^;]+(?=\.\d+ \()')
6262
echo "PGVER=${pgver}" >> $GITHUB_ENV
6363
echo "PGIS=3" >> $GITHUB_ENV
6464
echo "PGPORT=5432" >> $GITHUB_ENV

.github/workflows/doc-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
if: env.PROCESS == 'true'
8181
run: |
8282
sudo service postgresql start
83-
pgver=$(psql --version | grep -Po '(?<=psql \(PostgreSQL\) )[^;]+(?=\.\d \()')
83+
pgver=$(psql --version | grep -Po '(?<=psql \(PostgreSQL\) )[^;]+(?=\.\d+ \()')
8484
echo "PGVER=${pgver}" >> $GITHUB_ENV
8585
8686
- name: Add PostgreSQL APT repository

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Get postgres version
2929
run: |
3030
sudo service postgresql start
31-
PGVER=$(psql --version | grep -Po '(?<=psql \(PostgreSQL\) )[^;]+(?=\.\d \()')
31+
PGVER=$(psql --version | grep -Po '(?<=psql \(PostgreSQL\) )[^;]+(?=\.\d+ \()')
3232
PGROUTING_VERSION=$(grep -Po '(?<=project\(PGROUTING VERSION )[^;]+' CMakeLists.txt)
3333
echo "PGVER=${PGVER}" >> $GITHUB_ENV
3434
echo "PGPORT=5432" >> $GITHUB_ENV

.github/workflows/ubuntu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: get postgres version
4040
run: |
4141
sudo service postgresql start
42-
pgver=$(psql --version | grep -Po '(?<=psql \(PostgreSQL\) )[^;]+(?=\.\d \()')
42+
pgver=$(psql --version | grep -Po '(?<=psql \(PostgreSQL\) )[^;]+(?=\.\d+ \()')
4343
echo "PGVER=${pgver}" >> $GITHUB_ENV
4444
PGP=5433
4545
if [ "${{ matrix.psql }}" == "${pgver}" ]; then PGP=5432; fi

.github/workflows/update-locale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Get postgres version
3535
run: |
3636
sudo service postgresql start
37-
PGVER=$(psql --version | grep -Po '(?<=psql \(PostgreSQL\) )[^;]+(?=\.\d \()')
37+
PGVER=$(psql --version | grep -Po '(?<=psql \(PostgreSQL\) )[^;]+(?=\.\d+ \()')
3838
PROJECT_VERSION=$(grep -Po '(?<=project\(PGROUTING VERSION )[^;]+' CMakeLists.txt)
3939
echo "PGVER=${PGVER}" >> $GITHUB_ENV
4040
echo "PGPORT=5432" >> $GITHUB_ENV

.github/workflows/update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Get postgres version
3737
run: |
3838
sudo service postgresql start
39-
pgver=$(psql --version | grep -Po '(?<=psql \(PostgreSQL\) )[^;]+(?=\.\d \()')
39+
pgver=$(psql --version | grep -Po '(?<=psql \(PostgreSQL\) )[^;]+(?=\.\d+ \()')
4040
echo "PGVER=${pgver}" >> $GITHUB_ENV
4141
echo "PGIS=3" >> $GITHUB_ENV
4242
PG_USER=$(whoami)

.github/workflows/website.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Get postgres version
3636
run: |
3737
sudo service postgresql start
38-
PGVER=$(psql --version | grep -Po '(?<=psql \(PostgreSQL\) )[^;]+(?=\.\d \()')
38+
PGVER=$(psql --version | grep -Po '(?<=psql \(PostgreSQL\) )[^;]+(?=\.\d+ \()')
3939
PROJECT_VERSION=$(grep -Po '(?<=project\(PGROUTING VERSION )[^;]+' CMakeLists.txt)
4040
echo "PGVER=${PGVER}" >> $GITHUB_ENV
4141
echo "PGPORT=5432" >> $GITHUB_ENV

0 commit comments

Comments
 (0)