Skip to content

Commit 4cbea70

Browse files
committed
fix(ci): adds api keys for simkl
1 parent 422c374 commit 4cbea70

File tree

5 files changed

+25
-1
lines changed

5 files changed

+25
-1
lines changed

.github/actions/build/action.yml

+10
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ inputs:
3131
description: TVDB API key
3232
required: true
3333

34+
simkl_client_id:
35+
description: Simkl client ID
36+
required: true
37+
simkl_client_secret:
38+
description: Simkl client secret
39+
required: true
40+
3441

3542
runs:
3643
using: composite
@@ -51,6 +58,9 @@ runs:
5158
VITE_TMDB_READ_TOKEN: ${{ inputs.tmdb_read_token }}
5259

5360
VITE_TVDB_API_KEY: ${{ inputs.tvdb_api_key }}
61+
62+
VITE_SIMKL_CLIENT_ID: ${{ inputs.simkl_client_id }}
63+
VITE_SIMKL_CLIENT_SECRET: ${{ inputs.simkl_client_secret }}
5464
run: |
5565
# ================= 🚧 Build =================
5666
pnpm run ${{ inputs.script }}

.github/workflows/build.yml

+6
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ jobs:
3333

3434
tvdb_api_key: ${{ secrets.VITE_TVDB_API_KEY }}
3535

36+
simkl_client_id: ${{ secrets.VITE_SIMKL_CLIENT_ID }}
37+
simkl_client_secret: ${{ secrets.VITE_SIMKL_CLIENT_SECRET }}
38+
3639
build-web:
3740
name: ☁️ Build Web
3841
runs-on: ubuntu-latest
@@ -57,6 +60,9 @@ jobs:
5760

5861
tvdb_api_key: ${{ secrets.VITE_TVDB_API_KEY }}
5962

63+
simkl_client_id: ${{ secrets.VITE_SIMKL_CLIENT_ID }}
64+
simkl_client_secret: ${{ secrets.VITE_SIMKL_CLIENT_SECRET }}
65+
6066
test:
6167
name: 🧪 Unit Test
6268
runs-on: ubuntu-latest

.github/workflows/deploy.yml

+3
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ jobs:
5656

5757
tvdb_api_key: ${{ secrets.VITE_TVDB_API_KEY }}
5858

59+
simkl_client_id: ${{ secrets.VITE_SIMKL_CLIENT_ID }}
60+
simkl_client_secret: ${{ secrets.VITE_SIMKL_CLIENT_SECRET }}
61+
5962
- name: 🏗️ Setup Pages
6063
uses: actions/configure-pages@v5
6164

.github/workflows/publish.yml

+6
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ jobs:
4545

4646
tvdb_api_key: ${{ secrets.VITE_TVDB_API_KEY }}
4747

48+
simkl_client_id: ${{ secrets.VITE_SIMKL_CLIENT_ID }}
49+
simkl_client_secret: ${{ secrets.VITE_SIMKL_CLIENT_SECRET }}
50+
4851
- name: 💾 Restore build artefacts
4952
uses: actions/cache/save@v4
5053
id: cache
@@ -89,6 +92,9 @@ jobs:
8992

9093
tvdb_api_key: ${{ secrets.VITE_TVDB_API_KEY }}
9194

95+
simkl_client_id: ${{ secrets.VITE_SIMKL_CLIENT_ID }}
96+
simkl_client_secret: ${{ secrets.VITE_SIMKL_CLIENT_SECRET }}
97+
9298
- name: 🗃️ Zip build folder
9399
run: |
94100
# ================= 🗃️ Zipping build folder =================

src/services/trakt.service.ts

-1
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,6 @@ export class TraktService {
615615
};
616616

617617
static simkl = {
618-
client: this.simklClient,
619618
settings: async () => {
620619
const response = await this.simklClient.user.settings();
621620
return response.json();

0 commit comments

Comments
 (0)