Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit56dcbb7

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 parent9595a94 commit56dcbb7

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)

[8]ページ先頭

©2009-2025 Movatter.jp