From a5e002f61c4fab0b4b720fdc2f904460637f86c6 Mon Sep 17 00:00:00 2001 From: William Brawner Date: Sat, 20 Feb 2021 21:36:07 -0700 Subject: [PATCH] Fix flank auth in GitHub workflow --- .github/workflows/android.yml | 4 +--- flank_auth.sh | 5 +++++ 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 flank_auth.sh diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 71b1656..60f7989 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -24,9 +24,7 @@ jobs: - name: Add auth for flank env: GCLOUD_KEY: ${{ secrets.GCLOUD_KEY }} - GCLOUD_DIR: "~/.config/gcloud/" run: | - mkdir -p "$GCLOUD_DIR" - echo "$GCLOUD_KEY" | base64 --decode > "$GCLOUD_DIR/application_default_credentials.json" + ./flank_auth.sh - name: Run UI tests run: ./gradlew runFlank diff --git a/flank_auth.sh b/flank_auth.sh new file mode 100644 index 0000000..3d9d04a --- /dev/null +++ b/flank_auth.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +GCLOUD_DIR="$HOME/.config/gcloud/" +mkdir -p "$GCLOUD_DIR" +echo "$GCLOUD_KEY" | base64 --decode > "$GCLOUD_DIR/application_default_credentials.json" \ No newline at end of file