From 780aeb81b64db2547b6d71601510dd3a89e57812 Mon Sep 17 00:00:00 2001 From: Gabriel Volpe Date: Sun, 24 May 2020 16:16:53 +0200 Subject: [PATCH] Updating to latest dhall definitions --- .github/workflows/ci.dhall | 18 ++++++------------ .github/workflows/release.dhall | 18 ++++++------------ 2 files changed, 12 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci.dhall b/.github/workflows/ci.dhall index 993d7088..162dd683 100644 --- a/.github/workflows/ci.dhall +++ b/.github/workflows/ci.dhall @@ -1,12 +1,11 @@ let GithubActions = - https://raw.githubusercontent.com/gvolpe/github-actions-dhall/feature/scala-actions/package.dhall sha256:afd0a65b78c18a6c2aef93469b6457b19559a8125576d7f49da0729d3c5a2ea6 + https://raw.githubusercontent.com/regadas/github-actions-dhall/master/package.dhall sha256:40602cb9f4e3d1964e87bc88385c7946d9796b0fb1358249fce439ac9f30c726 let matrix = toMap { java = [ "8.0.242", "11.0.5" ] } let setup = [ GithubActions.steps.checkout - , GithubActions.steps.run - { run = "docker-compose up -d" } + , GithubActions.steps.run { run = "docker-compose up -d" } , GithubActions.steps.run { run = '' @@ -23,20 +22,15 @@ let setup = , key = "coursier" , hashFile = "gha.cache.tmp" } - , GithubActions.steps.java-setup - { java-version = "\${{ matrix.java}}" } - , GithubActions.steps.run - { run = "sbt buildRedis4Cats" } - , GithubActions.steps.run - { run = "docker-compose down" } + , GithubActions.steps.olafurpg/java-setup { java-version = "\${{ matrix.java}}" } + , GithubActions.steps.run { run = "sbt buildRedis4Cats" } + , GithubActions.steps.run { run = "docker-compose down" } ] in GithubActions.Workflow::{ , name = "Scala" , on = GithubActions.On::{ - , push = Some GithubActions.Push::{ - branches = Some [ "master" ] - } + , push = Some GithubActions.Push::{ branches = Some [ "master" ] } , pull_request = Some GithubActions.PullRequest::{=} } , jobs = toMap diff --git a/.github/workflows/release.dhall b/.github/workflows/release.dhall index bb2b167a..1f34b26c 100644 --- a/.github/workflows/release.dhall +++ b/.github/workflows/release.dhall @@ -1,25 +1,19 @@ let GithubActions = - https://raw.githubusercontent.com/gvolpe/github-actions-dhall/feature/scala-actions/package.dhall sha256:afd0a65b78c18a6c2aef93469b6457b19559a8125576d7f49da0729d3c5a2ea6 + https://raw.githubusercontent.com/regadas/github-actions-dhall/master/package.dhall sha256:40602cb9f4e3d1964e87bc88385c7946d9796b0fb1358249fce439ac9f30c726 let setup = [ GithubActions.steps.checkout - , GithubActions.steps.java-setup { java-version = "11" } - , GithubActions.steps.gpg-setup - , GithubActions.steps.sbt-ci-release - { ref = "\${{ github.ref }}" - , pgpPassphrase = "\${{ secrets.PGP_PASSPHRASE }}" - , pgpSecret = "\${{ secrets.PGP_SECRET }}" - , sonatypePassword = "\${{ secrets.SONATYPE_PASSWORD }}" - , sonatypeUsername = "\${{ secrets.SONATYPE_USERNAME }}" - } + , GithubActions.steps.olafurpg/java-setup { java-version = "11" } + , GithubActions.steps.olafurpg/gpg-setup + , GithubActions.steps.olafurpg/sbt-ci-release ] in GithubActions.Workflow::{ , name = "Release" , on = GithubActions.On::{ , push = Some GithubActions.Push::{ - , branches = Some [ "master" ] - , tags = Some ["*"] + , branches = Some [ "master" ] + , tags = Some [ "*" ] } } , jobs = toMap