Skip to content

Commit a0f6c9f

Browse files
committed
feat: add version output
1 parent ad6e6d8 commit a0f6c9f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ runs:
66
branding:
77
icon: 'git-commit'
88
color: 'purple'
9+
outputs:
10+
version:
11+
description: 'New version'
912
inputs:
1013
dry_run:
1114
description: 'Run without creating commit, output to stdout'

entrypoint.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ fi
4343
export REV=`cz version --project`
4444
echo "REVISION=$REV" >> $GITHUB_ENV
4545

46+
echo "::set-output name=version::$REV"
47+
4648
echo "Pushing to branch..."
4749
remote_repo="https://${GITHUB_ACTOR}:${INPUT_GITHUB_TOKEN}@github.com/${REPOSITORY}.git"
4850
git pull ${remote_repo} ${INPUT_BRANCH}

0 commit comments

Comments
 (0)