We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fa09b2 commit ca40c46Copy full SHA for ca40c46
.github/workflows/post-release.yml
@@ -24,6 +24,15 @@ jobs:
24
RELEASE_VERSION: ${{ inputs.versionNumber }}
25
steps:
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
36
- name: Update issues related to release
37
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
38
with:
0 commit comments