-
-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2449 from Kaiserdragon2/Pages
Pages
- Loading branch information
Showing
7 changed files
with
1,135 additions
and
4 deletions.
There are no files selected for viewing
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
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 |
Oops, something went wrong.