Skip to content

Commit e1a1934

Browse files
committed
Replace Env
1 parent 3a24f3e commit e1a1934

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

action.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,12 @@ runs:
5454
- name: Generate Height
5555
id: height
5656
shell: bash
57+
env:
58+
COUNT: ${{ steps.count.outputs.count }}
59+
TAG: ${{ steps.tag.outputs.tag }}
5760
run: |
58-
if (( ${{ steps.count.outputs.count }} > 0 )); then
59-
echo "height=$(git rev-list ${{ steps.version.outputs.tag }}.. --count)" >> $GITHUB_OUTPUT
61+
if (( $COUNT > 0 )); then
62+
echo "height=$(git rev-list $TAG.. --count)" >> $GITHUB_OUTPUT
6063
else
6164
echo "height=$(git rev-list --count HEAD)" >> $GITHUB_OUTPUT
6265
fi

0 commit comments

Comments
 (0)