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