Fix: fix backport script (#2699)

This commit is contained in:
Tianxin Dong
2021-11-12 22:34:12 +08:00
committed by GitHub
parent b10e4a05a0
commit b3014c2f62
+3 -5
View File
@@ -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 }}