requests @ b4b3aaa05c16f22954e496546af99b2e9b86dfda #54
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: Update Requests | |
run-name: requests @ ${{ github.sha }} | |
permissions: | |
contents: write | |
concurrency: ${{ github.ref }} | |
on: | |
workflow_dispatch: | |
jobs: | |
update: | |
name: Update | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.PA_TOKEN }} | |
- name: Update requests | |
run: | | |
cd resources/utilities | |
sudo pip install -r requirements.txt | |
python email_dumper.py -u "${{ secrets.EMAIL_ADDRESS }}" \ | |
-p "${{ secrets.EMAIL_PASSWORD }}" \ | |
-r "${{ secrets.EMAIL_FOLDER }}" | |
python email_parser.py emails ../../app/src/main/res/xml/appfilter.xml ../requests.txt 2>&1 /dev/null | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: 'Update requests.txt' | |
file_pattern: 'resources/requests.txt' |