Python script fixes #85
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate requirements.txt | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11 | |
- name: Install pipreqs | |
run: | | |
pip install pipreqs | |
- name: Generate requirements.txt | |
run: | | |
pipreqs --force . | |
- name: Commit changes | |
env: | |
GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }} | |
run: | | |
git config user.name "Requirements Update" | |
git config user.email "skemgi2@gmail.com" | |
git add requirements.txt | |
git commit -m "Update requirements.txt" | |
git push origin main |