File tree Expand file tree Collapse file tree 1 file changed +21
-2
lines changed
Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change 2828 echo "RELEASE_VERSION=${{ github.event.inputs.release-version }}" >> $GITHUB_ENV
2929 echo "BRANCH_NAME=${{ github.event.inputs.branch-name }}" >> $GITHUB_ENV
3030
31- - name : Print TAG_NAME
32- run : echo $TAG_NAME
31+ - name : Print ENV variable
32+ run : |
33+ echo "${{ github.event.release.name }}"
34+ echo "${{ github.event.release.target_commitish }}"
35+ echo "${{ github.event.inputs.release-version }}"
36+ echo "${{ github.event.inputs.branch-name }}"
37+ echo "$RELEASE_VERSION"
38+ echo "$BRANCH_NAME"
3339
3440 alternate-way :
3541 runs-on : ubuntu-latest
3945 set -x
4046 if [ -z "${{github.event.inputs.release-version}}" ] || [ -z "${{github.event.inputs.branch-name}}" ]
4147 then
48+ echo "************************************************************************"
4249 echo "RELEASE_VERSION=${{ github.event.release.name }}" >> $GITHUB_ENV
4350 echo "BRANCH_NAME=${{ github.event.release.target_commitish }}" >> $GITHUB_ENV
51+ echo "************************************************************************"
4452 else
53+ echo "=========================================================================="
4554 echo "RELEASE_VERSION=${{ github.event.inputs.release-version }}" >> $GITHUB_ENV
4655 echo "BRANCH_NAME=${{ github.event.inputs.branch-name }}" >> $GITHUB_ENV
56+ echo "=========================================================================="
4757 fi
58+
59+ - name : print ENV variable
60+ run : |
61+ echo "${{ github.event.release.name }}"
62+ echo "${{ github.event.release.target_commitish }}"
63+ echo "${{ github.event.inputs.release-version }}"
64+ echo "${{ github.event.inputs.branch-name }}"
65+ echo "$RELEASE_VERSION"
66+ echo "$BRANCH_NAME"
You can’t perform that action at this time.
0 commit comments