diff --git a/Dockerfile b/Dockerfile index 5ecc944..e6904b4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,11 +22,14 @@ RUN apt-get update && apt-get install -y \ libxshmfence1 \ libgles2-mesa \ xvfb \ + tzdata \ --no-install-recommends && \ curl -sSL https://dl.google.com/linux/linux_signing_key.pub | apt-key add - && \ echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list && \ apt-get update && apt-get install -y google-chrome-stable --no-install-recommends && \ - rm -rf /var/lib/apt/lists/* + rm -rf /var/lib/apt/lists/* && \ + ln -fs /usr/share/zoneinfo/America/Toronto /etc/localtime && \ + dpkg-reconfigure -f noninteractive tzdata WORKDIR /usr/src/app diff --git a/action.yml b/action.yml index 7393b2e..9e3996e 100644 --- a/action.yml +++ b/action.yml @@ -49,15 +49,6 @@ runs: - name: Check out the repository uses: actions/checkout@v3 - - name: Set Timezone - run: | - sudo apt-get update - sudo apt-get install -y tzdata - echo "America/Toronto" | sudo tee /etc/timezone - sudo ln -sf /usr/share/zoneinfo/America/Toronto /etc/localtime - sudo dpkg-reconfigure -f noninteractive tzdata - shell: bash - - name: Check mode requirements run: | if [[ "${{ inputs.mode }}" == "fetch" || "${{ inputs.mode }}" == "fetch-push" ]]; then