From b691781a0accb87f68b5e72be0b7d4512c3021f8 Mon Sep 17 00:00:00 2001 From: moritzrfs Date: Sun, 4 May 2025 17:37:29 +0200 Subject: [PATCH] Add python script vars --- .gitea/workflows/test.yaml | 8 +++++++- test.py | 7 +++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 test.py diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index df49fe2..10d2ae1 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -22,4 +22,10 @@ jobs: Explore-Own-Steps: runs-on: ubuntu-latest steps: - - run: echo "The URL is ${{ vars.ADGUARD_URL }}" + - name: Show custom variable + run: echo "The URL is ${{ vars.ADGUARD_URL }}" + + - name: Run Python script from file + run: python3 test.py + env: + ADGUARD_URL: ${{ vars.ADGUARD_URL }} \ No newline at end of file diff --git a/test.py b/test.py new file mode 100644 index 0000000..bf3056c --- /dev/null +++ b/test.py @@ -0,0 +1,7 @@ +import os + +# from dotenv import load_dotenv + +# load_dotenv() + +url = os.getenv("ADGUARD_URL") \ No newline at end of file