This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 48
52 lines (46 loc) · 1.96 KB
/
pypi-dependencies.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Change the look of Adwaita, with ease
# Copyright (C) 2022 Gradience Team
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
name: Generate PyPI Dependencies
on:
push:
branches: [ "main" ]
paths: requirements.txt
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
python-version: '3.10'
- name: Run a multi-line script
run: |
curl -O https://raw.githubusercontent.com/flatpak/flatpak-builder-tools/master/pip/flatpak-pip-generator
chmod +x flatpak-pip-generator
python -m pip install requirements-parser
./flatpak-pip-generator --requirements-file=requirements.txt --output pypi-dependencies
mv pypi-dependencies.json build-aux/flatpak/pypi-dependencies.json
- name: Create pull request
uses: peter-evans/[email protected]
with:
author: "AdwCustomizer <[email protected]>"
title: "meta: update PyPI dependencies for Flatpak"
body: "This automated PR contains an auto-generated `pypi-dependencies.json` file used in Flatpak manifests."
labels: flatpak, ci/automated-pr
commit-message: "meta: update Flatpak PyPI dependencies"
committer: "AdwCustomizer <[email protected]>"
branch: update-pypi-deps