From 5ebc245b90e215b800f6f6e01e8339c8024bd769 Mon Sep 17 00:00:00 2001 From: Marta Paciorkowska Date: Thu, 30 Apr 2026 15:24:59 +0200 Subject: [PATCH] fix: move posthog step to workflow --- .github/actions/helm-deploy/action.yml | 9 --------- .github/actions/helm-lint/action.yml | 9 --------- .github/workflows/deploy.yml | 9 +++++++++ .github/workflows/lint.yml | 9 +++++++++ 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/actions/helm-deploy/action.yml b/.github/actions/helm-deploy/action.yml index 378c776..1dc1cc3 100644 --- a/.github/actions/helm-deploy/action.yml +++ b/.github/actions/helm-deploy/action.yml @@ -109,12 +109,3 @@ runs: exit 1 fi fi - - id: send-analytics - name: Send analytics to PostHog - uses: entur/gha-meta/.github/actions/posthog@e27fa4579248d4792b933ef0d0f240346676a25d # 1.8.0 - if: always() - with: - api_key: ${{ vars.POSTHOG_API_TOKEN_PLATTFORM }} - gha_repository: entur/gha-helm # This must be hardcoded to the repository where the workflow is defined. - workflow_inputs: ${{ toJSON(inputs) }} - workflow_name: helm-deploy diff --git a/.github/actions/helm-lint/action.yml b/.github/actions/helm-lint/action.yml index 5dbafe5..97a5781 100644 --- a/.github/actions/helm-lint/action.yml +++ b/.github/actions/helm-lint/action.yml @@ -48,12 +48,3 @@ runs: --quiet \ "${GHA_HELM_LINT_CHART}" \ -f "${GHA_HELM_LINT_CHART}/env/${GHA_HELM_LINT_VALUES}" - - id: send-analytics - name: Send analytics to PostHog - uses: entur/gha-meta/.github/actions/posthog@e27fa4579248d4792b933ef0d0f240346676a25d # 1.8.0 - if: always() - with: - api_key: ${{ vars.POSTHOG_API_TOKEN_PLATTFORM }} - gha_repository: entur/gha-helm # This must be hardcoded to the repository where the workflow is defined. - workflow_inputs: ${{ toJSON(inputs) }} - workflow_name: helm-lint diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 88fb50b..f877cc8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -253,6 +253,15 @@ jobs: namespace: ${{ env.GHA_HELM_DEPLOY_NAMESPACE }} image_set_path: ${{ env.GHA_HELM_DEPLOY_IMAGE_SET_PATH }} registry: ${{ env.GHA_HELM_DEPLOY_REGISTRY }} + - uses: entur/gha-meta/.github/actions/posthog@e27fa4579248d4792b933ef0d0f240346676a25d # 1.8.0 + id: send-analytics + name: Send analytics to PostHog + if: always() + with: + api_key: ${{ vars.POSTHOG_API_TOKEN_PLATTFORM }} + gha_repository: entur/gha-helm # This must be hardcoded to the repository where the workflow is defined. + workflow_inputs: ${{ toJSON(inputs) }} + workflow_name: helm-deploy prepare-slack: if: always() && inputs.slack_channel_id != '' needs: [helm-deploy] diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 28369bf..9d29b0d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -34,3 +34,12 @@ jobs: environment: ${{ inputs.environment }} chart: ${{ inputs.chart }} values: ${{ inputs.values }} + - uses: entur/gha-meta/.github/actions/posthog@e27fa4579248d4792b933ef0d0f240346676a25d # 1.8.0 + id: send-analytics + name: Send analytics to PostHog + if: always() + with: + api_key: ${{ vars.POSTHOG_API_TOKEN_PLATTFORM }} + gha_repository: entur/gha-helm # This must be hardcoded to the repository where the workflow is defined. + workflow_inputs: ${{ toJSON(inputs) }} + workflow_name: helm-lint