mirror of
https://github.com/Shabinder/SpotiFlyer.git
synced 2024-11-24 18:04:33 +01:00
Maintenance Tasks Fixed
This commit is contained in:
parent
62e110b8c6
commit
17ea75d007
4
.github/workflows/maintenance.yml
vendored
4
.github/workflows/maintenance.yml
vendored
@ -7,7 +7,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Test and Build
|
name: Maintenance Time
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
@ -22,7 +22,7 @@ jobs:
|
|||||||
uses: actions/checkout@v2.3.1
|
uses: actions/checkout@v2.3.1
|
||||||
|
|
||||||
# Run Maintenance Tasks
|
# Run Maintenance Tasks
|
||||||
- name: Android App
|
- name: Maintenance Run
|
||||||
run: ./gradlew :maintenance-tasks:run
|
run: ./gradlew :maintenance-tasks:run
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
|
@ -27,11 +27,6 @@ android {
|
|||||||
targetSdkVersion(Versions.targetSdkVersion)
|
targetSdkVersion(Versions.targetSdkVersion)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*composeOptions {
|
|
||||||
kotlinCompilerExtensionVersion = Versions.compose
|
|
||||||
kotlinCompilerVersion = Versions.kotlinVersion
|
|
||||||
}*/
|
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
plugins {
|
plugins {
|
||||||
kotlin("jvm")
|
kotlin("jvm")
|
||||||
kotlin("plugin.serialization")
|
kotlin("plugin.serialization")
|
||||||
|
id("ktlint-setup")
|
||||||
application
|
application
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ import utils.byProperty
|
|||||||
|
|
||||||
internal object Common {
|
internal object Common {
|
||||||
const val GITHUB_API = "https://api.github.com"
|
const val GITHUB_API = "https://api.github.com"
|
||||||
val GITHUB_TOKEN get() = "GITHUB_TOKEN".byProperty
|
val GH_TOKEN get() = "GH_TOKEN".byProperty
|
||||||
fun START_SECTION(tagName: String = "HTI") = "<!--START_SECTION:$tagName-->"
|
fun START_SECTION(tagName: String = "HTI") = "<!--START_SECTION:$tagName-->"
|
||||||
fun END_SECTION(tagName: String = "HTI") = "<!--END_SECTION:$tagName-->"
|
fun END_SECTION(tagName: String = "HTI") = "<!--END_SECTION:$tagName-->"
|
||||||
const val USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:88.0) Gecko/20100101 Firefox/88.0"
|
const val USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:88.0) Gecko/20100101 Firefox/88.0"
|
||||||
|
@ -9,7 +9,7 @@ internal fun updateAnalyticsImage() {
|
|||||||
|
|
||||||
runBlocking {
|
runBlocking {
|
||||||
val oldGithubFile = GithubService.getGithubFileContent(
|
val oldGithubFile = GithubService.getGithubFileContent(
|
||||||
token = Common.GITHUB_TOKEN,
|
token = Common.GH_TOKEN,
|
||||||
ownerName = secrets.ownerName,
|
ownerName = secrets.ownerName,
|
||||||
repoName = secrets.repoName,
|
repoName = secrets.repoName,
|
||||||
branchName = secrets.branchName,
|
branchName = secrets.branchName,
|
||||||
@ -43,7 +43,7 @@ internal fun updateAnalyticsImage() {
|
|||||||
// debug("Updated File Content:\n$updatedContent")
|
// debug("Updated File Content:\n$updatedContent")
|
||||||
|
|
||||||
val updationResponse = GithubService.updateGithubFileContent(
|
val updationResponse = GithubService.updateGithubFileContent(
|
||||||
token = Common.GITHUB_TOKEN,
|
token = Common.GH_TOKEN,
|
||||||
ownerName = secrets.ownerName,
|
ownerName = secrets.ownerName,
|
||||||
repoName = secrets.repoName,
|
repoName = secrets.repoName,
|
||||||
branchName = secrets.branchName,
|
branchName = secrets.branchName,
|
||||||
|
Loading…
Reference in New Issue
Block a user