Skip to content

requests @ 2113d67fc08569d8a615801603356ae144ab6e0f #51

requests @ 2113d67fc08569d8a615801603356ae144ab6e0f

requests @ 2113d67fc08569d8a615801603356ae144ab6e0f #51

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'