Add python script vars
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
Gitea Actions Demo / Explore-Own-Steps (push) Failing after 1s

This commit is contained in:
moritzrfs
2025-05-04 17:37:29 +02:00
parent 83e095473b
commit b691781a0a
2 changed files with 14 additions and 1 deletions

View File

@@ -22,4 +22,10 @@ jobs:
Explore-Own-Steps: Explore-Own-Steps:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: 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 }}

7
test.py Normal file
View File

@@ -0,0 +1,7 @@
import os
# from dotenv import load_dotenv
# load_dotenv()
url = os.getenv("ADGUARD_URL")