Commit 0650ca8 1 parent 88c9790 commit 0650ca8 Copy full SHA for 0650ca8
File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ outputs:
13
13
bumped :
14
14
description : ' Whether there was a bump or not [true|false]'
15
15
value : ${{ steps.bump.outputs.bumped }}
16
+ previous-version :
17
+ description : ' Previous version'
18
+ value : ${{ steps.bump.outputs.previous-version }}
19
+ current-version :
20
+ description : ' Updated version'
21
+ value : ${{ steps.bump.outputs.current-version }}
16
22
runs :
17
23
using : ' composite'
18
24
steps :
39
45
id : bump
40
46
shell : bash
41
47
run : |
48
+ echo "previous-version=$(bump-my-version show current_version)" >> $GITHUB_OUTPUT
49
+
42
50
bump-my-version bump ${{ inputs.args }}
43
- exitcode="$?"
44
- ([[ ${exitcode} -gt 0 ]] && echo "bumped=false" || echo "bumped=true") >> $GITHUB_OUTPUT
51
+ ([[ $? -gt 0 ]] && echo "bumped=false" || echo "bumped=true") >> $GITHUB_OUTPUT
52
+ echo "current-version=$(bump-my-version show current_version)" >> $GITHUB_OUTPUT
45
53
- name : Push changes to GitHub
46
54
uses : ad-m/github-push-action@master
47
55
with :
You can’t perform that action at this time.
0 commit comments