Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenCMD committed Jan 13, 2024
1 parent d021121 commit 83da428
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ object GitHubCacheRestoration {
): F[CIPlatformCacheRestorationInstr[F]] = for {
ghCtx <- ActionsGitHub.getContext()

_ <- ciInteraction.printInfo("meow1")
token <- inputReader.readKey[String]("GITHUB_TOKEN")
_ <- ciInteraction.printInfo("meow2")
_ <- ciInteraction.printInfo(token.show)

instr = new CIPlatformCacheRestorationInstr[F] {
override def shouldRestoreCache(): F[RestoreCacheOrSkip] = {
Expand All @@ -44,7 +47,6 @@ object GitHubCacheRestoration {
ghCtx.eventName match {
case "push" => ghCtx.payload.asInstanceOf[PushEvent].commits.toList.map(_.message).pure[F]
case "pull_request" if List("opened", "reopened", "synchronize").contains(ghCtx.payload.action) =>
ciInteraction.printInfo(token.show) *>
token.toOption.filter(_.nonEmpty).fold(
ciInteraction
.printWarning(
Expand Down

0 comments on commit 83da428

Please sign in to comment.