Add new workflow steps
This commit is contained in:
@@ -19,16 +19,32 @@ jobs:
|
||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||
- run: echo "Ok, let's go!"
|
||||
|
||||
Explore-Own-Steps:
|
||||
Run-Python-Script:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Show custom variable
|
||||
run: echo "The URL is ${{ vars.ADGUARD_URL }}"
|
||||
|
||||
- name: Check out repository
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Run Python script from file
|
||||
run: python3 test.py
|
||||
# load vars and secrets from Gitea
|
||||
- name: Load config vars
|
||||
env:
|
||||
ADGUARD_URL: ${{ vars.ADGUARD_URL }}
|
||||
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"
|
||||
|
||||
# install required Python packages from requirements.txt
|
||||
- name: Install required Python packages
|
||||
run: |
|
||||
echo "Installing required Python packages..."
|
||||
pip install -r requirements.txt
|
||||
# run the Python script
|
||||
# - name: Run the Python script
|
||||
# run: |
|
||||
# echo "Running the Python script..."
|
||||
# python3 main.py
|
||||
|
||||
|
||||
Reference in New Issue
Block a user