Skip to content

Commit

Permalink
Merge pull request #2449 from Kaiserdragon2/Pages
Browse files Browse the repository at this point in the history
Pages
  • Loading branch information
Kaiserdragon2 authored Dec 31, 2024
2 parents 03c3a0e + f0d4830 commit 2a28ab4
Show file tree
Hide file tree
Showing 7 changed files with 1,135 additions and 4 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/RequestUpdate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Update Requests

on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '30 5 * * 0,3'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
concurrency:
group: 'updaterequest'
cancel-in-progress: false

jobs:
Update_Requests:
environment:
name: Request-Update
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: Arcticons-Pages

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
cache: 'pip'
- run: pip install -r .github/workflows/requirements.txt

- name: Execute Python Script
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REQUEST_LIMIT: ${{ vars.REQUEST_LIMIT }}
MONTHS_LIMIT: ${{ vars.MONTHS_LIMIT }}
MIN_REQUESTS: ${{ vars.MIN_REQUESTS }}
SUBJECT_PREFIX: ${{ vars.SUBJECT_PREFIX }}
SUBJECT_SUFFIX: ${{ vars.SUBJECT_SUFFIX }}
IMAP_SERVER: ${{ secrets.IMAP_SERVER }}
IMAP_USERNAME: ${{ secrets.IMAP_USERNAME }}
IMAP_PASSWORD: ${{ secrets.IMAP_PASSWORD }}
run: |
mkdir mail
python .github/workflows/email_parser_auto.py mail newicons/appfilter.xml docs/extracted_png docs/assets/
rm -r mail
- name: Commit changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add -A
git commit -m "Automated Request Update"
git push
Loading

0 comments on commit 2a28ab4

Please sign in to comment.