From fd29a155b0a26ca7072e046289b86244687a1de0 Mon Sep 17 00:00:00 2001 From: tischrei Date: Fri, 8 Aug 2025 13:49:17 +0000 Subject: [PATCH 1/4] debug workflow --- .gitea/workflows/create-weekly-analytics-stats.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitea/workflows/create-weekly-analytics-stats.yaml b/.gitea/workflows/create-weekly-analytics-stats.yaml index c214eef..96896fe 100644 --- a/.gitea/workflows/create-weekly-analytics-stats.yaml +++ b/.gitea/workflows/create-weekly-analytics-stats.yaml @@ -26,6 +26,11 @@ jobs: python -m pip install --upgrade pip pip install requests otc-metadata + - name: Debug files + run: | + ls -l + ls -l tools + - name: Run analytics for eu_de env: UMAMI_USERNAME: ${{ secrets.UMAMI_USERNAME }} -- 2.34.1 From 6d6939883f04f84fab96ab887977813f7f8438df Mon Sep 17 00:00:00 2001 From: tischrei Date: Fri, 8 Aug 2025 13:56:57 +0000 Subject: [PATCH 2/4] fix shebang --- .gitea/workflows/create-weekly-analytics-stats.yaml | 5 ++--- tools/collect_statistics.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) mode change 100644 => 100755 tools/collect_statistics.py diff --git a/.gitea/workflows/create-weekly-analytics-stats.yaml b/.gitea/workflows/create-weekly-analytics-stats.yaml index 96896fe..2b531ce 100644 --- a/.gitea/workflows/create-weekly-analytics-stats.yaml +++ b/.gitea/workflows/create-weekly-analytics-stats.yaml @@ -36,8 +36,7 @@ jobs: UMAMI_USERNAME: ${{ secrets.UMAMI_USERNAME }} UMAMI_PASSWORD: ${{ secrets.UMAMI_PASSWORD }} run: | - chmod +x ./tools/collect_statistics.py - ./tools/collect_statistics.py \ + python ./tools/collect_statistics.py \ --website-id "${{ secrets.UMAMI_WEBSITE_ID }}" \ --cloud-environment "eu_de" \ --environment "public" \ @@ -48,7 +47,7 @@ jobs: UMAMI_USERNAME: ${{ secrets.UMAMI_USERNAME }} UMAMI_PASSWORD: ${{ secrets.UMAMI_PASSWORD }} run: | - ./tools/collect_statistics.py \ + python ./tools/collect_statistics.py \ --website-id "${{ secrets.UMAMI_WEBSITE_ID }}" \ --cloud-environment "swiss" \ --environment "public" \ diff --git a/tools/collect_statistics.py b/tools/collect_statistics.py old mode 100644 new mode 100755 index ca93948..069003a --- a/tools/collect_statistics.py +++ b/tools/collect_statistics.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. -- 2.34.1 From ded38b2b1eb2602e816060597c144d0c73ec610e Mon Sep 17 00:00:00 2001 From: "gitea-actions[bot]" Date: Fri, 8 Aug 2025 13:58:05 +0000 Subject: [PATCH 3/4] chore: update analytics data [skip ci] --- analytics/public/eu_de.json | 12 ++++++++++++ analytics/public/swiss.json | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 analytics/public/eu_de.json create mode 100644 analytics/public/swiss.json diff --git a/analytics/public/eu_de.json b/analytics/public/eu_de.json new file mode 100644 index 0000000..2cf976e --- /dev/null +++ b/analytics/public/eu_de.json @@ -0,0 +1,12 @@ +[ + "evs", + "ims", + "ecs", + "cce", + "obs", + "rds", + "sfs", + "iam", + "config", + "elb" +] \ No newline at end of file diff --git a/analytics/public/swiss.json b/analytics/public/swiss.json new file mode 100644 index 0000000..4450a8e --- /dev/null +++ b/analytics/public/swiss.json @@ -0,0 +1,12 @@ +[ + "evs", + "ims", + "ecs", + "cce", + "obs", + "rds", + "iam", + "elb", + "cbr", + "vpn" +] \ No newline at end of file -- 2.34.1 From bab06b54ddf070b3649c8a97e8841898aedd9e07 Mon Sep 17 00:00:00 2001 From: tischrei Date: Fri, 8 Aug 2025 13:58:52 +0000 Subject: [PATCH 4/4] remove debug information --- .gitea/workflows/create-weekly-analytics-stats.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.gitea/workflows/create-weekly-analytics-stats.yaml b/.gitea/workflows/create-weekly-analytics-stats.yaml index 2b531ce..5748018 100644 --- a/.gitea/workflows/create-weekly-analytics-stats.yaml +++ b/.gitea/workflows/create-weekly-analytics-stats.yaml @@ -26,11 +26,6 @@ jobs: python -m pip install --upgrade pip pip install requests otc-metadata - - name: Debug files - run: | - ls -l - ls -l tools - - name: Run analytics for eu_de env: UMAMI_USERNAME: ${{ secrets.UMAMI_USERNAME }} -- 2.34.1