From 4fbc155a530bed9317fe61cf1a28a96a91684f61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Stolarczuk?= Date: Fri, 13 Nov 2020 08:43:41 +0100 Subject: [PATCH 1/2] docker: remove hub package from Fedora Rawhide it's required by run-doc-update.sh which is not executed on this OS and apparently this package is not available in repository. --- utils/docker/images/Dockerfile.fedora-rawhide | 1 - 1 file changed, 1 deletion(-) diff --git a/utils/docker/images/Dockerfile.fedora-rawhide b/utils/docker/images/Dockerfile.fedora-rawhide index 4905608c49..6c399e3aeb 100644 --- a/utils/docker/images/Dockerfile.fedora-rawhide +++ b/utils/docker/images/Dockerfile.fedora-rawhide @@ -44,7 +44,6 @@ RUN dnf update -y \ gcc-c++ \ gdb \ git \ - hub \ json-c-devel \ kmod-devel \ libtool \ From 3b43a26941e46a7c0b1224ca21c946047d73e635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Stolarczuk?= Date: Fri, 5 Feb 2021 14:05:15 +0100 Subject: [PATCH 2/2] utils: make sure hub command is available when preparing PR with docs --- utils/docker/run-doc-update.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utils/docker/run-doc-update.sh b/utils/docker/run-doc-update.sh index 1df6e3d224..36200fff62 100755 --- a/utils/docker/run-doc-update.sh +++ b/utils/docker/run-doc-update.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # SPDX-License-Identifier: BSD-3-Clause -# Copyright 2018-2020, Intel Corporation +# Copyright 2018-2021, Intel Corporation # # run-doc-update.sh - is called inside a Docker container, @@ -86,6 +86,9 @@ git add -A git commit -m "doc: automatic gh-pages docs update" && true git push -f ${ORIGIN} ${GH_PAGES_NAME} +echo "Make sure hub command is available:" +hub --version + echo "Make or update pull request:" # When there is already an open PR or there are no changes an error is thrown, which we ignore. hub pull-request -f -b ${DOC_REPO_OWNER}:gh-pages -h ${BOT_NAME}:${GH_PAGES_NAME} \