From b3014c2f626e9f454ab08321f756da8b80879df2 Mon Sep 17 00:00:00 2001 From: Tianxin Dong Date: Fri, 12 Nov 2021 22:34:12 +0800 Subject: [PATCH] Fix: fix backport script (#2699) --- .github/workflows/issue-commands.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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