From 9b0f1118f9c9e8a9c79666bc359490d3b7af572a Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Fri, 9 Feb 2024 17:18:50 +0100 Subject: [PATCH] fix: Add missing import for MoshiConverterFactory (#431) Add run CI on the PR not the base. --- .github/workflows/ci.yml | 5 +---- app/src/github/kotlin/app/pachli/di/UpdateCheckModule.kt | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 984ff6ac3..a7730b720 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,13 +1,10 @@ name: CI -# Run on pull_request_target to access secrets.GRADLE_ENCRYPTION_KEY, -# and ensure permissions are marked read-only - on: push: tags: - '*' - pull_request_target: + pull_request: workflow_dispatch: permissions: read-all diff --git a/app/src/github/kotlin/app/pachli/di/UpdateCheckModule.kt b/app/src/github/kotlin/app/pachli/di/UpdateCheckModule.kt index 327d841b2..88aa167f6 100644 --- a/app/src/github/kotlin/app/pachli/di/UpdateCheckModule.kt +++ b/app/src/github/kotlin/app/pachli/di/UpdateCheckModule.kt @@ -26,6 +26,7 @@ import dagger.hilt.components.SingletonComponent import javax.inject.Singleton import okhttp3.OkHttpClient import retrofit2.Retrofit +import retrofit2.converter.moshi.MoshiConverterFactory import retrofit2.create @InstallIn(SingletonComponent::class)