From f252612984deabd0a853eb143a1bf5faea99fb01 Mon Sep 17 00:00:00 2001 From: Fernando Ferrara Date: Sun, 3 Dec 2023 21:40:26 -0300 Subject: [PATCH] fix: update GitHub workflow --- .github/workflows/release.yml | 4 ++-- bin/stacked.dart | 2 +- lib/src/services/posthog_service.dart | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ecc1fa1..7899be8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,8 +18,8 @@ jobs: with: channel: 'stable' - run: dart pub get - - name: Build app with API_KEY - run: dart compile exe -D POSTHOG_API_KEY=${{ secrets.POSTHOG_API_KEY }} bin/stacked.dart + - name: Build app + run: dart compile exe -D POSTHOG_API_KEY="${{ secrets.POSTHOG_API_KEY }}" bin/stacked.dart - name: release uses: cycjimmy/semantic-release-action@v3 with: diff --git a/bin/stacked.dart b/bin/stacked.dart index 3ca7dd7..6e41afc 100644 --- a/bin/stacked.dart +++ b/bin/stacked.dart @@ -45,7 +45,7 @@ Future main(List arguments) async { try { final argResults = runner.parse(arguments); - // await _handleFirstRun(); + await _handleFirstRun(); if (argResults[ksVersion]) { await _handleVersion(); diff --git a/lib/src/services/posthog_service.dart b/lib/src/services/posthog_service.dart index a4e8301..6ee8b63 100644 --- a/lib/src/services/posthog_service.dart +++ b/lib/src/services/posthog_service.dart @@ -45,6 +45,8 @@ class PosthogService { 'telemetry_config', compactionStrategy: (entries, deletedEntries) => deletedEntries > 50, ); + + _log.info(message: 'Initialized with Key:${_apiKey.substring(0, 2)}'); } Future _capture({