requests @ 582fb4ab457073309b5a9daae0b9f5ff21092e73 #144
This file contains hidden or 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 }} | |
| concurrency: | |
| group: delta | |
| permissions: | |
| contents: write | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| update: | |
| name: Update Requests | |
| runs-on: ubuntu-22.04 | |
| defaults: | |
| run: | |
| working-directory: resources/scripts | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| token: ${{ secrets.PA_TOKEN }} | |
| - name: Setup Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.13' | |
| cache: pip | |
| - name: Install Python deps | |
| run: | | |
| pip install -r requirements.txt | |
| - name: Dump emails | |
| run: | | |
| python -u email_dumper.py \ | |
| -u '${{ secrets.EMAIL_ADDRESS }}' \ | |
| -p '${{ secrets.EMAIL_PASSWORD }}' \ | |
| -r '${{ secrets.EMAIL_FOLDER }}' | |
| - name: Parse emails | |
| run: | | |
| python -u email_parser.py | |
| - name: Parse requests | |
| run: | | |
| python -u requests_parser.py -r | |
| - name: Commit changes | |
| uses: stefanzweifel/git-auto-commit-action@v7 | |
| with: | |
| commit_message: Update requests.yml | |
| file_pattern: contribs/requests.yml |