File tree 3 files changed +17
-1
lines changed
3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -53,10 +53,13 @@ jobs:
53
53
with :
54
54
fetch-depth : 0
55
55
token : " ${{ secrets.GITHUB_TOKEN }}"
56
- - name : Create bump and changelog
56
+ - id : cz
57
+ name : Create bump and changelog
57
58
uses : commitizen-tools/commitizen-action@master
58
59
with :
59
60
github_token : ${{ secrets.GITHUB_TOKEN }}
61
+ - name : Print Version
62
+ run : echo "Bumped to version ${{ steps.cz.outputs.version }}"
60
63
` ` `
61
64
62
65
## Variables
75
78
76
79
<!-- | `changelog` | Create changelog when bumping the version | true | -->
77
80
81
+ # # Outputs
82
+
83
+ | Name | Description |
84
+ | --------- | -------------------- |
85
+ | `version` | The new version |
86
+
87
+ Additionally, the new version is also availble as an environment variable under `REVISION`.
88
+
78
89
# # Troubleshooting
79
90
80
91
# ## Other actions are not triggered when the tag is pushed
Original file line number Diff line number Diff line change 6
6
branding :
7
7
icon : ' git-commit'
8
8
color : ' purple'
9
+ outputs :
10
+ version :
11
+ description : ' New version'
9
12
inputs :
10
13
dry_run :
11
14
description : ' Run without creating commit, output to stdout'
Original file line number Diff line number Diff line change 43
43
export REV=` cz version --project`
44
44
echo " REVISION=$REV " >> $GITHUB_ENV
45
45
46
+ echo " ::set-output name=version::$REV "
47
+
46
48
echo " Pushing to branch..."
47
49
remote_repo=" https://${GITHUB_ACTOR} :${INPUT_GITHUB_TOKEN} @github.com/${REPOSITORY} .git"
48
50
git pull ${remote_repo} ${INPUT_BRANCH}
You can’t perform that action at this time.
0 commit comments