Skip to content

requests @ 89c9776147c4df57d8eebbe56cbd5d9654b5d4a6 #55

requests @ 89c9776147c4df57d8eebbe56cbd5d9654b5d4a6

requests @ 89c9776147c4df57d8eebbe56cbd5d9654b5d4a6 #55

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'