daandemeyer / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
b8c242
From a8fd8d157c832ddad34a9a3e372579c58261f7fb Mon Sep 17 00:00:00 2001
b8c242
From: Frantisek Sumsal <frantisek@sumsal.cz>
b8c242
Date: Mon, 29 Nov 2021 13:59:41 +0100
b8c242
Subject: [PATCH] ci: pass the $GITHUB_ACTIONS variable to the CentOS container
b8c242
b8c242
so we can properly skip tests which are problematic when running in GH
b8c242
Actions.
b8c242
b8c242
Related: #2017033
b8c242
rhel-only
b8c242
---
b8c242
 .github/workflows/unit_tests.sh | 2 +-
b8c242
 1 file changed, 1 insertion(+), 1 deletion(-)
b8c242
b8c242
diff --git a/.github/workflows/unit_tests.sh b/.github/workflows/unit_tests.sh
b8c242
index 814870e7a0..c1311310fb 100755
b8c242
--- a/.github/workflows/unit_tests.sh
b8c242
+++ b/.github/workflows/unit_tests.sh
b8c242
@@ -131,7 +131,7 @@ for phase in "${PHASES[@]}"; do
b8c242
             # Pull a Docker image and start a new container
b8c242
             docker pull quay.io/centos/centos:$CENTOS_RELEASE
b8c242
             info "Starting container $CONT_NAME"
b8c242
-            $DOCKER_RUN -v $REPO_ROOT:/build:rw \
b8c242
+            $DOCKER_RUN -v $REPO_ROOT:/build:rw -e GITHUB_ACTIONS="$GITHUB_ACTIONS" \
b8c242
                         -w /build --privileged=true --name $CONT_NAME \
b8c242
                         -dit --net=host quay.io/centos/centos:$CENTOS_RELEASE /sbin/init
b8c242