Skip to content

Commit

Permalink
Fix Spark Java endpoint (#363)
Browse files Browse the repository at this point in the history
* Try out pinning Java version

* Attempt to fix the problem with local TZ

* Fix /etc/timezone

* Fix permissions issue
  • Loading branch information
aversey authored and SirOibaf committed Jan 17, 2025
1 parent de968a3 commit afd9571
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,14 @@ jobs:
python-version: ["3.8", "3.9", "3.10"]

steps:
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: "8"
distribution: "adopt"

- name: Set Timezone
run: sudo timedatectl set-timezone UTC
run: sudo timedatectl set-timezone UTC && echo UTC | sudo tee /etc/timezone

- uses: actions/checkout@v4
- name: Copy README
Expand All @@ -89,8 +95,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: "8"
distribution: "adopt"

- name: Set Timezone
run: sudo timedatectl set-timezone UTC
run: sudo timedatectl set-timezone UTC && echo UTC | sudo tee /etc/timezone

- uses: actions/checkout@v4
- name: Copy README
Expand All @@ -113,8 +125,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: "8"
distribution: "adopt"

- name: Set Timezone
run: sudo timedatectl set-timezone UTC
run: sudo timedatectl set-timezone UTC && echo UTC | sudo tee /etc/timezone

- uses: actions/checkout@v4
- name: Copy README
Expand All @@ -140,8 +158,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: "8"
distribution: "adopt"

- name: Set Timezone
run: sudo timedatectl set-timezone Europe/Amsterdam
run: sudo timedatectl set-timezone Europe/Amsterdam && echo Europe/Amsterdam | sudo tee /etc/timezone

- uses: actions/checkout@v4
- name: Copy README
Expand Down

0 comments on commit afd9571

Please sign in to comment.