Skip to content

Commit f539663

Browse files
committed
add timezone config
1 parent 3b71b2b commit f539663

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.github/workflows/debian-packages.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ jobs:
122122
steps:
123123
- name: Setup ROS repository and install base ROS
124124
run: |
125+
export DEBIAN_FRONTEND=noninteractive
126+
export TZ=Etc/UTC
127+
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
128+
125129
apt-get update -qq
126130
apt-get install -y curl gnupg lsb-release
127131
curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg

.github/workflows/ros-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ jobs:
5353

5454
- name: Setup ROS repository and install rosdep
5555
run: |
56+
export DEBIAN_FRONTEND=noninteractive
57+
export TZ=Etc/UTC
58+
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
59+
5660
apt-get update -qq
5761
apt-get install -y curl gnupg lsb-release
5862
curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg

scripts/build_debian_packages.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ fi
8585
# Setup ROS repository if not already configured
8686
echo "Setting up ROS repository..."
8787
export DEBIAN_FRONTEND=noninteractive
88+
export TZ=Etc/UTC
89+
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
90+
8891
apt-get update -qq
8992
apt-get install -y curl gnupg lsb-release
9093

0 commit comments

Comments
 (0)