This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data class Profile(val firstName:String, val lastName:String){ | |
override fun toString(): String = Uri.encode(Gson().toJson(this)) | |
} | |
class ProfileArgType : JsonNavType<Profile>() { | |
override fun fromJsonParse(value: String): Profile = Gson().fromJson(value, Profile::class.java) | |
override fun FromProfileArguments.getJsonParse(): String = Gson().toJson(this) | |
} | |
//Discaimer : Gson or Moshi or any other library is up to you |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Phrase push" | |
on: | |
pull_request: | |
types: [ closed ] | |
branches: [ develop ] | |
jobs: | |
phrase_push_create_job: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "pull" | |
on: | |
schedule: | |
- cron: "0 10 * * 4" | |
jobs: | |
pull: | |
runs-on: ubuntu-latest |