naccyde / rpms / systemd

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