File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 24
24
RELEASE_VERSION : ${{ inputs.versionNumber }}
25
25
steps :
26
26
- uses : actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
27
+ - name : Get release version
28
+ run : |
29
+ # The code below does the following:
30
+ # 1. If the workflow was triggered manually, it will use the version number provided by the user
31
+ # 2. If the workflow was triggered by a release, it will use the version number of the release
32
+ if [ -z "$RELEASE_VERSION" ]; then
33
+ export RELEASE_VERSION=$(git describe --tags --abbrev=0)
34
+ fi
35
+ echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
27
36
- name : Update issues related to release
28
37
uses : actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
29
38
with :
You can’t perform that action at this time.
0 commit comments