Refactor Gitea workflow to remove redundant Python setup step
This commit is contained in:
@@ -10,13 +10,14 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: python:3.9-slim
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# DELETE the "Set up Python" step entirely
|
||||
|
||||
- name: Update README file
|
||||
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
|
||||
- name: Update README file
|
||||
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