Skip to content

Commit 6674dd6

Browse files
committed
.github/workflows/02-make-check-workflow-with-nut-website-scripts.yml: only autoconf... nut-website if nut-ddl.py.in becomes a real template
Expecting that eventually like in NUT itself we might pick a particular value of a @python@ interpreter; currently we do not. Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
1 parent dfd8c8c commit 6674dd6

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/02-make-check-workflow-with-nut-website-scripts.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ jobs:
2323
sudo apt install build-essential python3 make autoconf autoconf-archive automake libtool m4 pkg-config
2424
- name: prepare nut-website repo
2525
run: |
26-
cd ../nut-website && \
27-
autoreconf -ifv && \
28-
./configure || echo "CONFIGURE FAILED, WILL TRY DIRECTLY" >&2 ; \
26+
cd ../nut-website || exit ; \
27+
if grep -E '@[^@][^@]*@' ../tools/nut-ddl.py.in ; then \
28+
autoreconf -ifv && \
29+
./configure || echo "CONFIGURE FAILED, WILL TRY DIRECTLY" >&2 ; \
30+
fi ; \
2931
if [ ! -s tools/nut-ddl.py ] && [ -s tools/nut-ddl.py.in ] ; then \
3032
cp -pf tools/nut-ddl.py.in tools/nut-ddl.py ; \
3133
fi ; \

0 commit comments

Comments
 (0)