Skip to content

Commit 545be23

Browse files
authored
chore(backport): action failing due to upstream bug (#1446) (#1447)
(cherry picked from commit 66cec8b) Signed-off-by: Eli Polonsky <[email protected]> # Conflicts: # .projen/tasks.json
1 parent 838218b commit 545be23

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.projen/tasks.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,10 @@ function createBackportTask(branch?: Number): Task {
199199
task.exec(`mkdir -p ${backportHome}`);
200200
task.exec(`cp ${backportConfig.path} ${backportHome}`);
201201

202-
const backport = ['npx', 'backport', '--accesstoken', '${GITHUB_TOKEN}', '--pr', '${BACKPORT_PR_NUMBER}'];
202+
// pinning because of https://github.com/sqren/backport/issues/451
203+
const backportVersion = '8.5.0';
204+
205+
const backport = ['npx', `backport@${backportVersion}`, '--accesstoken', '${GITHUB_TOKEN}', '--pr', '${BACKPORT_PR_NUMBER}'];
203206
if (branch) {
204207
backport.push(...['--branch', `k8s-${branch}/main`]);
205208
} else {

0 commit comments

Comments
 (0)