forked from maybe-hello-world/pyproject-check-version
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
36 lines (34 loc) · 1.01 KB
/
action.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
# action.yaml
name: "Python project version check"
description: "Compare Python package version from pyproject.toml and PyPI release and return true if local version is higher."
branding:
icon: 'aperture'
color: 'green'
inputs:
pyproject-path:
description: "location of pyproject file"
required: true
default: "./pyproject.toml"
test-regex:
description: "regex for testing whether destination is test.pypi.org or not"
required: false
use-test-pypi:
description: "Force use of test.pypi.org"
required: false
default: "false"
outputs:
local_version_is_higher:
description: "True if local version is higher than public version"
local_version:
description: "Local version of the package"
public_version:
description: "Public version of the package"
is_test:
description: "Whether destination is test.pypi.org or not"
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.pyproject-path }}
- ${{ inputs.test-regex }}
- ${{ inputs.use-test-pypi }}