Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 3 additions & 14 deletions .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:

- name: Export vars
run: |
python -u resources/scripts/resolve_paths.py -p >> $GITHUB_ENV
python -u resources/scripts/shared.py -p >> $GITHUB_ENV
due_on=$(TZ=UTC date --iso-8601=seconds -d "$(date +%Y-%m-01) +1 month") >> $GITHUB_ENV

- name: Install Python deps
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:

- name: Add icons
run: |
python -u ${{ env.sd }}/add_icons_wrapper.py
python -u ${{ env.sd }}/process_icons.py

- name: Set icons count
run: |
Expand All @@ -112,14 +112,6 @@ jobs:
echo 'No release tag or changed files found, skip optimizing'
fi

- name: Sort XMLs
run: |
cd ${{ env.sd }}
python sort_appfilter.py -o
python sort_drawable.py -o
cp -fv ${{ env.a1 }} ${{ env.a2 }}
cp -fv ${{ env.d1 }} ${{ env.d2 }}

- name: Create changelog
run: |
mkdir -v changelog
Expand Down Expand Up @@ -188,10 +180,7 @@ jobs:
</foreground>
</adaptive-icon>
EOF
python ${{ env.sd }}/sort_appfilter.py -o
python ${{ env.sd }}/sort_drawable.py -o
cp -fv ${{ env.a1 }} ${{ env.a2 }}
cp -fv ${{ env.d1 }} ${{ env.d2 }}
python -u ${{ env.sd }}/process_icons.py -s
bash gradlew assembleFossdc
git restore ${{ env.d1 }} ${{ env.d2 }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_foss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ jobs:

- name: Export vars
run: |
python -u resources/scripts/resolve_paths.py -p >> $GITHUB_ENV
python -u resources/scripts/shared.py -p >> $GITHUB_ENV

- name: Install Python deps
run: |
pip install -r ${{ env.sd }}/requirements.txt

- name: Add icons
run: |
python -u ${{ env.sd }}/add_icons_wrapper.py
python -u ${{ env.sd }}/process_icons.py

- name: Set version
run: |
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/check_conflicts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,24 @@ on:
workflow_dispatch:
pull_request:
paths:
- contribs/**
- contribs/icons/**
- contribs/icons.yml

env:
FORCE_COLOR: 1
PYTHONUNBUFFERED: 1

jobs:
build:
name: Check for Conflicts
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
defaults:
run:
working-directory: resources/scripts
steps:

- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: Setup Python
uses: actions/setup-python@v6
Expand All @@ -29,6 +34,6 @@ jobs:
run: |
pip install -r requirements.txt

- name: Add icons
- name: Process icons in dry run
run: |
python -u add_icons_wrapper.py
python process_icons.py -d 2>&1
25 changes: 10 additions & 15 deletions .github/workflows/update_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,20 @@ permissions:
on:
workflow_dispatch:

env:
PYTHONUNBUFFERED: 1

jobs:
update:
name: Update Requests
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
defaults:
run:
working-directory: resources/scripts
steps:

- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
token: ${{ secrets.PA_TOKEN }}

Expand All @@ -34,20 +37,12 @@ jobs:
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
- name: Process emails
run: |
python -u requests_parser.py -r
python process_emails.py -p -d --unread \
--user '${{ secrets.EMAIL_ADDRESS }}' \
--pass '${{ secrets.EMAIL_PASSWORD }}' \
--remote '${{ secrets.EMAIL_FOLDER }}' \

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v7
Expand Down
Loading