Update main.yml #36
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, workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Automatic requirements.txt for Python Project | |
uses: ryan-rozario/pipreqs-action@v3.0.0 | |
with: | |
PROJECT_PATH: '.' | |
REQUIREMENT_PATH: 'requirements.txt' | |
- name: Commit and Push requirements.txt | |
env: | |
PERSONAL_TOKEN: ${{ secrets.ACCESSTOKEN }} | |
run: | | |
git config --global user.name 'BirdsAreFlyingCameras' | |
git config --global user.email 'cartmansmad@gmail.com' | |
git add requirements.txt | |
git commit -m "Update requirements.txt" | |
git push https://${{ github.actor }}:${{ env.PERSONAL_TOKEN }}@github.com/BirdsAreFlyingCameras/BirdGlance | |