Skip to content

Commit b30a668

Browse files
authored
Merge pull request #4 from joepitt91/latest-version-2
chore: bump latest-version to v2.0.0
2 parents bb4c13f + e6ab1b1 commit b30a668

File tree

164 files changed

+47939
-25
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+47939
-25
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,13 @@ __pycache__/
1212

1313
# Distribution / packaging
1414
.Python
15+
bin/
1516
build/
1617
develop-eggs/
1718
dist/
1819
downloads/
1920
eggs/
2021
.eggs/
21-
lib/
22-
lib64/
2322
parts/
2423
sdist/
2524
var/

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ SPDX-License-Identifier: GPL-3.0-only
55
-->
66
# Changelog
77

8+
## v2.0.0
9+
10+
* BREAKING CHANGE: replace `minimum_version` and `maximum_version` with `greater_equal_version` and
11+
`less_than_version`, allowing more natural filtering
12+
* feat: bundle dependencies for faster execution
13+
814
## v1.0.0
915

1016
Initial Release

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ Get the latest version from the tags in a GitHub repository.
1414
| token | The token to authenticate to GitHub with. | Yes | |
1515
| owner | The owner of the source repository. | yes | |
1616
| repository | The name of the source repository. | Yes | |
17-
| minimum_version | The minimum version number to accept, e.g. 2.0.0. | No | None |
18-
| maximum_version | The maximum version number to accept, e.g. 2.99.99. | No | None |
17+
| greater_equal_version | The minimum version to accept, e.g. 2.0.0. | No | None |
18+
| less_than_version | The version to accept versions less than, e.g. 3.0.0. | No | None |
1919

2020
## Outputs
2121

@@ -29,7 +29,7 @@ Get the latest version from the tags in a GitHub repository.
2929
```yaml
3030
- name: Get Latest ComfyUI Version
3131
id: version
32-
uses: joepitt91/action-version-from-github-tag@v1
32+
uses: joepitt91/action-version-from-github-tag@v2
3333
with:
3434
token: ${{ secrets.PACKAGE_READER_PAT }}
3535
owner: comfyanonymous

action.yml

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ inputs:
1616
repository:
1717
description: The name of the source repository.
1818
required: true
19-
minimum_version:
20-
description: The minimum version number to accept, e.g. 2.0.0. Defaults to None.
19+
greater_equal_version:
20+
description: The minimum version to accept, e.g. 2.0.0. Defaults to None.
2121
required: false
22-
maximum_version:
23-
description: The maximum version number to accept, e.g. 2.99.99. Defaults to None.
22+
less_than_version:
23+
description: The version to accept versions less than, e.g. 3.0.0. Defaults to None.
2424
required: false
2525
outputs:
2626
tag:
@@ -32,39 +32,40 @@ outputs:
3232
runs:
3333
using: composite
3434
steps:
35-
- name: Install Dependencies
36-
id: dependencies
37-
run: pip3 install --quiet --upgrade -r ${{ github.action_path }}/requirements.txt
38-
shell: bash
3935
- name: Get Latest Version
4036
id: get_version
4137
env:
4238
GITHUB_ACTION_PATH: ${{ github.action_path }}
43-
INPUT_maximum_version: ${{ inputs.minimum_version }}
44-
INPUT_minimum_version: ${{ inputs.minimum_version }}
39+
INPUT_greater_equal_version: ${{ inputs.greater_equal_version }}
40+
INPUT_less_than_version: ${{ inputs.less_than_version }}
4541
INPUT_owner: ${{ inputs.owner }}
4642
INPUT_repository: ${{ inputs.repository }}
4743
INPUT_token: ${{ inputs.token }}
4844
shell: python
4945
run: |
5046
from os import getenv
47+
from os.path import abspath, join
48+
import sys
49+
50+
sys.path.insert(1, abspath(join(getenv("GITHUB_ACTION_PATH", "."), "lib")))
51+
5152
from get_latest_version.github import get_latest_version_from_tags
5253
from get_latest_version.functions import clean_version
5354
from semver import Version
5455
55-
minimum_version = None
56-
if getenv("INPUT_minimum_version") is not None and len(getenv("INPUT_minimum_version")) >= 5:
57-
minimum_version = Version.parse(getenv("INPUT_minimum_version"))
58-
maximum_version = None
59-
if getenv("INPUT_maximum_version") is not None and len(getenv("INPUT_maximum_version")) >= 5:
60-
maximum_version = Version.parse(getenv("INPUT_maximum_version"))
56+
greater_equal_version = None
57+
if getenv("INPUT_greater_equal_version") is not None and len(getenv("INPUT_greater_equal_version")) >= 5:
58+
greater_equal_version = Version.parse(getenv("INPUT_greater_equal_version"))
59+
less_than_version = None
60+
if getenv("INPUT_less_than_version") is not None and len(getenv("INPUT_less_than_version")) >= 5:
61+
less_than_version = Version.parse(getenv("INPUT_less_than_version"))
6162
6263
tag = get_latest_version_from_tags(
6364
token=getenv("INPUT_token"),
6465
owner=getenv("INPUT_owner"),
6566
repository=getenv("INPUT_repository"),
66-
minimum_version=minimum_version,
67-
maximum_version=maximum_version,
67+
greater_equal_version=greater_equal_version,
68+
less_than_version=less_than_version,
6869
)
6970
7071
with open(getenv("GITHUB_OUTPUT"), "a", encoding="utf-8") as f:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pip
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
Metadata-Version: 2.4
2+
Name: certifi
3+
Version: 2025.11.12
4+
Summary: Python package for providing Mozilla's CA Bundle.
5+
Home-page: https://github.com/certifi/python-certifi
6+
Author: Kenneth Reitz
7+
Author-email: me@kennethreitz.com
8+
License: MPL-2.0
9+
Project-URL: Source, https://github.com/certifi/python-certifi
10+
Classifier: Development Status :: 5 - Production/Stable
11+
Classifier: Intended Audience :: Developers
12+
Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
13+
Classifier: Natural Language :: English
14+
Classifier: Programming Language :: Python
15+
Classifier: Programming Language :: Python :: 3
16+
Classifier: Programming Language :: Python :: 3 :: Only
17+
Classifier: Programming Language :: Python :: 3.7
18+
Classifier: Programming Language :: Python :: 3.8
19+
Classifier: Programming Language :: Python :: 3.9
20+
Classifier: Programming Language :: Python :: 3.10
21+
Classifier: Programming Language :: Python :: 3.11
22+
Classifier: Programming Language :: Python :: 3.12
23+
Classifier: Programming Language :: Python :: 3.13
24+
Classifier: Programming Language :: Python :: 3.14
25+
Requires-Python: >=3.7
26+
License-File: LICENSE
27+
Dynamic: author
28+
Dynamic: author-email
29+
Dynamic: classifier
30+
Dynamic: description
31+
Dynamic: home-page
32+
Dynamic: license
33+
Dynamic: license-file
34+
Dynamic: project-url
35+
Dynamic: requires-python
36+
Dynamic: summary
37+
38+
Certifi: Python SSL Certificates
39+
================================
40+
41+
Certifi provides Mozilla's carefully curated collection of Root Certificates for
42+
validating the trustworthiness of SSL certificates while verifying the identity
43+
of TLS hosts. It has been extracted from the `Requests`_ project.
44+
45+
Installation
46+
------------
47+
48+
``certifi`` is available on PyPI. Simply install it with ``pip``::
49+
50+
$ pip install certifi
51+
52+
Usage
53+
-----
54+
55+
To reference the installed certificate authority (CA) bundle, you can use the
56+
built-in function::
57+
58+
>>> import certifi
59+
60+
>>> certifi.where()
61+
'/usr/local/lib/python3.7/site-packages/certifi/cacert.pem'
62+
63+
Or from the command line::
64+
65+
$ python -m certifi
66+
/usr/local/lib/python3.7/site-packages/certifi/cacert.pem
67+
68+
Enjoy!
69+
70+
.. _`Requests`: https://requests.readthedocs.io/en/master/
71+
72+
Addition/Removal of Certificates
73+
--------------------------------
74+
75+
Certifi does not support any addition/removal or other modification of the
76+
CA trust store content. This project is intended to provide a reliable and
77+
highly portable root of trust to python deployments. Look to upstream projects
78+
for methods to use alternate trust.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
certifi-2025.11.12.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
2+
certifi-2025.11.12.dist-info/METADATA,sha256=_JprGu_1lWSdHlruRBKcorXnrfvBDhvX_6KRr8HQbLc,2475
3+
certifi-2025.11.12.dist-info/RECORD,,
4+
certifi-2025.11.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
5+
certifi-2025.11.12.dist-info/licenses/LICENSE,sha256=6TcW2mucDVpKHfYP5pWzcPBpVgPSH2-D8FPkLPwQyvc,989
6+
certifi-2025.11.12.dist-info/top_level.txt,sha256=KMu4vUCfsjLrkPbSNdgdekS-pVJzBAJFO__nI8NF6-U,8
7+
certifi/__init__.py,sha256=1BRSxNMnZW7CZ2oJtYWLoJgfHfcB9i273exwiPwfjJM,94
8+
certifi/__main__.py,sha256=xBBoj905TUWBLRGANOcf7oi6e-3dMP4cEoG9OyMs11g,243
9+
certifi/__pycache__/__init__.cpython-313.pyc,,
10+
certifi/__pycache__/__main__.cpython-313.pyc,,
11+
certifi/__pycache__/core.cpython-313.pyc,,
12+
certifi/cacert.pem,sha256=oa1dZD4hxDtb7XTH4IkdzbWPavUcis4eTwINZUqlKhY,283932
13+
certifi/core.py,sha256=XFXycndG5pf37ayeF8N32HUuDafsyhkVMbO4BAPWHa0,3394
14+
certifi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Wheel-Version: 1.0
2+
Generator: setuptools (80.9.0)
3+
Root-Is-Purelib: true
4+
Tag: py3-none-any
5+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
This package contains a modified version of ca-bundle.crt:
2+
3+
ca-bundle.crt -- Bundle of CA Root Certificates
4+
5+
This is a bundle of X.509 certificates of public Certificate Authorities
6+
(CA). These were automatically extracted from Mozilla's root certificates
7+
file (certdata.txt). This file can be found in the mozilla source tree:
8+
https://hg.mozilla.org/mozilla-central/file/tip/security/nss/lib/ckfw/builtins/certdata.txt
9+
It contains the certificates in PEM format and therefore
10+
can be directly used with curl / libcurl / php_curl, or with
11+
an Apache+mod_ssl webserver for SSL client authentication.
12+
Just configure this file as the SSLCACertificateFile.#
13+
14+
***** BEGIN LICENSE BLOCK *****
15+
This Source Code Form is subject to the terms of the Mozilla Public License,
16+
v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain
17+
one at http://mozilla.org/MPL/2.0/.
18+
19+
***** END LICENSE BLOCK *****
20+
@(#) $RCSfile: certdata.txt,v $ $Revision: 1.80 $ $Date: 2011/11/03 15:11:58 $
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
certifi

0 commit comments

Comments
 (0)