Add different approach
All checks were successful
Gitea Actions Demo / Run-Python-Script (push) Successful in 42s
All checks were successful
Gitea Actions Demo / Run-Python-Script (push) Successful in 42s
This commit is contained in:
@@ -5,32 +5,11 @@ on: [push]
|
|||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
Run-Python-Script:
|
Run-Python-Script:
|
||||||
runs-on: docker
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: python:3.12-slim
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
- uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
- name: Load config vars
|
python-version: '3.13'
|
||||||
env:
|
- run: pip install -r requirements.txt # Installiere die benötigten Python-Pakete
|
||||||
ADGUARD_URL: ${{ vars.ADGUARD_URL }}
|
# - run: python main.py # Führe dein Python-Skript aus
|
||||||
ADGUARD_USER: ${{ vars.ADGUARD_USER }}
|
|
||||||
ADGUARD_PASSWORD: ${{ secrets.ADGUARD_PASSWORD }}
|
|
||||||
YAML_FILE: ${{ vars.YAML_FILE }}
|
|
||||||
run: |
|
|
||||||
echo "Exporting config vars..."
|
|
||||||
echo "URL: $ADGUARD_URL"
|
|
||||||
echo "User: $ADGUARD_USER"
|
|
||||||
echo "YAML_FILE: $YAML_FILE"
|
|
||||||
|
|
||||||
- name: Install required Python packages
|
|
||||||
run: |
|
|
||||||
echo "Installing requirements..."
|
|
||||||
pip install --no-cache-dir -r requirements.txt
|
|
||||||
|
|
||||||
- name: Run the Python script
|
|
||||||
run: |
|
|
||||||
echo "Running the Python script..."
|
|
||||||
python main.py
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user