Update Gitea workflow to install Python dependencies dynamically
This commit is contained in:
@@ -10,12 +10,13 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: python:3.9-slim
|
image: python:3.9-slim
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: pip install requests
|
|
||||||
|
|
||||||
- name: Update README file
|
- name: Update README file
|
||||||
run: python update_profile.py
|
run: |
|
||||||
|
# Check if python3 is there, if not, install it quickly
|
||||||
|
which python3 || (sudo apt-get update && sudo apt-get install -y python3)
|
||||||
|
python3 update_profile.py
|
||||||
Reference in New Issue
Block a user