Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit 77cb381

Browse files
CI: set proper image version for doc generating job
It's copy pasted from pmemkv (0d764bd). Without this fix doc job may fail if image changed for master.
1 parent 8aeb8cc commit 77cb381

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/gha.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ jobs:
7171

7272
- name: Run the build
7373
run: cd $WORKDIR && ${{ matrix.CONFIG }} ./build.sh
74+
7475
doc:
7576
name: build and publish docs
7677
runs-on: ubuntu-latest
@@ -86,6 +87,12 @@ jobs:
8687
matrix:
8788
CONFIG: ["TYPE=doc OS=fedora OS_VER=32"]
8889
steps:
90+
- name: Set image version for stable branch
91+
# doc update happens only on stable branch (not on PR), so we check only for heads ref
92+
if: startsWith(github.ref, 'refs/heads/stable-')
93+
run: |
94+
echo "IMG_VER=$(echo ${GITHUB_REF#refs/heads/} | cut -d - -f 2)" >> $GITHUB_ENV
95+
8996
- name: Clone the git repo
9097
uses: actions/checkout@v2
9198
with:

0 commit comments

Comments
 (0)