Skip to content

Commit 44b7f8e

Browse files
averseySirOibaf
authored andcommittedJan 17, 2025
Fix Spark Java endpoint (logicalclocks#363)
* Try out pinning Java version * Attempt to fix the problem with local TZ * Fix /etc/timezone * Fix permissions issue
1 parent 66cf3ee commit 44b7f8e

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed
 

‎.github/workflows/python.yml

+28-4
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,14 @@ jobs:
6262
python-version: ["3.8", "3.9", "3.10"]
6363

6464
steps:
65+
- name: Set up JDK 8
66+
uses: actions/setup-java@v3
67+
with:
68+
java-version: "8"
69+
distribution: "adopt"
70+
6571
- name: Set Timezone
66-
run: sudo timedatectl set-timezone UTC
72+
run: sudo timedatectl set-timezone UTC && echo UTC | sudo tee /etc/timezone
6773

6874
- uses: actions/checkout@v4
6975
- name: Copy README
@@ -89,8 +95,14 @@ jobs:
8995
runs-on: ubuntu-latest
9096

9197
steps:
98+
- name: Set up JDK 8
99+
uses: actions/setup-java@v3
100+
with:
101+
java-version: "8"
102+
distribution: "adopt"
103+
92104
- name: Set Timezone
93-
run: sudo timedatectl set-timezone UTC
105+
run: sudo timedatectl set-timezone UTC && echo UTC | sudo tee /etc/timezone
94106

95107
- uses: actions/checkout@v4
96108
- name: Copy README
@@ -113,8 +125,14 @@ jobs:
113125
runs-on: ubuntu-latest
114126

115127
steps:
128+
- name: Set up JDK 8
129+
uses: actions/setup-java@v3
130+
with:
131+
java-version: "8"
132+
distribution: "adopt"
133+
116134
- name: Set Timezone
117-
run: sudo timedatectl set-timezone UTC
135+
run: sudo timedatectl set-timezone UTC && echo UTC | sudo tee /etc/timezone
118136

119137
- uses: actions/checkout@v4
120138
- name: Copy README
@@ -140,8 +158,14 @@ jobs:
140158
runs-on: ubuntu-latest
141159

142160
steps:
161+
- name: Set up JDK 8
162+
uses: actions/setup-java@v3
163+
with:
164+
java-version: "8"
165+
distribution: "adopt"
166+
143167
- name: Set Timezone
144-
run: sudo timedatectl set-timezone Europe/Amsterdam
168+
run: sudo timedatectl set-timezone Europe/Amsterdam && echo Europe/Amsterdam | sudo tee /etc/timezone
145169

146170
- uses: actions/checkout@v4
147171
- name: Copy README

0 commit comments

Comments
 (0)