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:
|
||||
|
||||
Run-Python-Script:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: python:3.12-slim
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Load config vars
|
||||
env:
|
||||
ADGUARD_URL: ${{ vars.ADGUARD_URL }}
|
||||
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
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.13'
|
||||
- run: pip install -r requirements.txt # Installiere die benötigten Python-Pakete
|
||||
# - run: python main.py # Führe dein Python-Skript aus
|
||||
|
||||
Reference in New Issue
Block a user