Skip to content

Commit 56dcbb7

Browse files
committed
Github actions CI: change code of an AQO branch name designation. Now it should
work on push trigger as well as on a pull request [1]. [1] https://stackoverflow.com/questions/58033366/how-to-get-the-current-branch-within-github-actions
1 parent 9595a94 commit 56dcbb7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/c-cpp.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [ stable14 ]
88

9+
env:
10+
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
11+
912
jobs:
1013
build:
1114

@@ -14,15 +17,15 @@ jobs:
1417
steps:
1518
- name: pg
1619
run: |
17-
echo "Deploying to production server on branch $GITHUB_REF"
20+
echo "Deploying to production server on branch" $BRANCH_NAME
1821
git config --global user.email "ci@postgrespro.ru"
1922
git config --global user.name "CI PgPro admin"
2023
git clone https://github.com/postgres/postgres.git pg
2124
cd pg
2225
git checkout REL_14_STABLE
2326
./configure --prefix=`pwd`/tmp_install CFLAGS="-O3"
2427
git clone https://github.com/postgrespro/aqo.git contrib/aqo
25-
git -C contrib/aqo checkout $GITHUB_REF
28+
git -C contrib/aqo checkout $BRANCH_NAME
2629
patch -p1 --no-backup-if-mismatch < contrib/aqo/aqo_pg14.patch
2730
make -j4 > /dev/null && make -j4 -C contrib > /dev/null
2831
env CLIENTS=50 THREADS=50 make -C contrib/aqo check

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy