Skip to content

Commit e54badd

Browse files
committed
fix action path and outputs
1 parent 2e49756 commit e54badd

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

action.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@ inputs:
2020
mostly useful when you want to use outputs in later steps
2121
required: false
2222

23+
outputs:
24+
IS_PRERELEASE:
25+
description: "Either `'true'` or `'false'` whether the version is a pre-release"
26+
value: ${{ steps.check-python-version.outputs.IS_PRERELEASE }}
27+
VERSION:
28+
description: The "pretty" version string
29+
value: ${{ steps.check-python-version.outputs.VERSION }}
30+
VERSION_MAJOR_MINOR:
31+
description: "Major and minor version numbers, e.g. `1.2.3` would output `1.2`"
32+
value: ${{ steps.check-python-version.outputs.VERSION_MAJOR_MINOR }}
33+
2334
runs:
2435
using: composite
2536
steps:
@@ -28,7 +39,13 @@ runs:
2839
enable-cache: true
2940
python-version: 3.13
3041

42+
- run: echo "$GITHUB_ACTION_PATH" >> $GITHUB_PATH
43+
shell: bash
44+
env:
45+
GITHUB_ACTION_PATH: ${{ github.action_path }}
46+
3147
- run: check-python-version.py
48+
id: check-python-version
3249
shell: bash
3350

3451
branding:

0 commit comments

Comments
 (0)