diff --git a/.github/workflows/issue-commands.yml b/.github/workflows/issue-commands.yml index 95d491629..0a7f3e110 100644 --- a/.github/workflows/issue-commands.yml +++ b/.github/workflows/issue-commands.yml @@ -45,11 +45,9 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} script: | const version = process.env.VERSION - var label string + let label = "backport release-" + version if (version.includes("release")) { - label = "backport version" - } else { - label = "backport release-" + version + label = "backport " + version } // Add our backport label. github.issues.addLabels({ @@ -68,4 +66,4 @@ jobs: uses: zeebe-io/backport-action@v0.0.6 with: github_token: ${{ secrets.GITHUB_TOKEN }} - github_workspace: ${{ github.workspace }} + github_workspace: ${{ github.workspace }} \ No newline at end of file