Skip to content

Commit

Permalink
chore(backport): action failing due to upstream bug (#1446)
Browse files Browse the repository at this point in the history
(cherry picked from commit 66cec8b)
Signed-off-by: Eli Polonsky <[email protected]>

# Conflicts:
#	.projen/tasks.json
  • Loading branch information
iliapolo committed Nov 24, 2022
1 parent 838218b commit 17498e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .projen/tasks.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,10 @@ function createBackportTask(branch?: Number): Task {
task.exec(`mkdir -p ${backportHome}`);
task.exec(`cp ${backportConfig.path} ${backportHome}`);

const backport = ['npx', 'backport', '--accesstoken', '${GITHUB_TOKEN}', '--pr', '${BACKPORT_PR_NUMBER}'];
// pinning because of https://github.com/sqren/backport/issues/451
const backportVersion = '8.5.0';

const backport = ['npx', `backport@${backportVersion}`, '--accesstoken', '${GITHUB_TOKEN}', '--pr', '${BACKPORT_PR_NUMBER}'];
if (branch) {
backport.push(...['--branch', `k8s-${branch}/main`]);
} else {
Expand Down

0 comments on commit 17498e1

Please sign in to comment.