We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ad6e6d8 + 8e97e70 commit 2f18c1dCopy full SHA for 2f18c1d
README.md
@@ -53,10 +53,13 @@ jobs:
53
with:
54
fetch-depth: 0
55
token: "${{ secrets.GITHUB_TOKEN }}"
56
- - name: Create bump and changelog
+ - id: cz
57
+ name: Create bump and changelog
58
uses: commitizen-tools/commitizen-action@master
59
60
github_token: ${{ secrets.GITHUB_TOKEN }}
61
+ - name: Print Version
62
+ run: echo "Bumped to version ${{ steps.cz.outputs.version }}"
63
```
64
65
## Variables
@@ -75,6 +78,14 @@ jobs:
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
89
## Troubleshooting
90
91
### Other actions are not triggered when the tag is pushed
action.yml
@@ -6,6 +6,9 @@ runs:
6
branding:
7
icon: 'git-commit'
8
color: 'purple'
9
+outputs:
10
+ version:
11
+ description: 'New version'
12
inputs:
13
dry_run:
14
description: 'Run without creating commit, output to stdout'
entrypoint.sh
@@ -43,6 +43,8 @@ fi
43
export REV=`cz version --project`
44
echo "REVISION=$REV" >> $GITHUB_ENV
45
46
+echo "::set-output name=version::$REV"
47
48
echo "Pushing to branch..."
49
remote_repo="https://${GITHUB_ACTOR}:${INPUT_GITHUB_TOKEN}@github.com/${REPOSITORY}.git"
50
git pull ${remote_repo} ${INPUT_BRANCH}
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments