From 17cd4cac60cf576a46b5c3766384ecfff62d7556 Mon Sep 17 00:00:00 2001 From: tischrei Date: Fri, 8 Aug 2025 14:01:24 +0000 Subject: [PATCH] debug workflow (#40) Co-authored-by: gitea-actions[bot] Reviewed-on: https://gitea.eco.tsi-dev.otc-service.com/infra/otc-metadata-rework/pulls/40 Co-authored-by: tischrei Co-committed-by: tischrei --- .gitea/workflows/create-weekly-analytics-stats.yaml | 5 ++--- analytics/public/eu_de.json | 12 ++++++++++++ analytics/public/swiss.json | 12 ++++++++++++ tools/collect_statistics.py | 2 +- 4 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 analytics/public/eu_de.json create mode 100644 analytics/public/swiss.json 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 c214eef..5748018 100644 --- a/.gitea/workflows/create-weekly-analytics-stats.yaml +++ b/.gitea/workflows/create-weekly-analytics-stats.yaml @@ -31,8 +31,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" \ @@ -43,7 +42,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/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 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.