mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-02-14 02:15:14 +00:00
fix cli exec statement in debug tab (#4643)
This commit is contained in:
parent
7c31bcf327
commit
1da7a64349
2 changed files with 2 additions and 2 deletions
|
@ -261,7 +261,7 @@
|
||||||
"metadata_download_successful": "Metadata downloaded successfully",
|
"metadata_download_successful": "Metadata downloaded successfully",
|
||||||
"no_permission": "You don't have permission to access debug information.",
|
"no_permission": "You don't have permission to access debug information.",
|
||||||
"metadata_exec_title": "Rerun pipeline locally",
|
"metadata_exec_title": "Rerun pipeline locally",
|
||||||
"metadata_exec_desc": "Download this pipeline's metadata to run it locally. This allows you to troubleshoot issues and test changes before committing them."
|
"metadata_exec_desc": "Download this pipeline's metadata to run it locally. This allows you to troubleshoot issues and test changes before committing them. `woodpecker-cli` matching the Woodpecker Server version must be installed locally."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -41,7 +41,7 @@ const isLoading = ref(false);
|
||||||
const metadataFileName = computed(
|
const metadataFileName = computed(
|
||||||
() => `${repo?.value.full_name.replaceAll('/', '-')}-pipeline-${pipeline?.value.number}-metadata.json`,
|
() => `${repo?.value.full_name.replaceAll('/', '-')}-pipeline-${pipeline?.value.number}-metadata.json`,
|
||||||
);
|
);
|
||||||
const cliExecWithMetadata = computed(() => `# woodpecker exec --metadata-file ${metadataFileName.value}`);
|
const cliExecWithMetadata = computed(() => `# woodpecker-cli exec --metadata-file ${metadataFileName.value}`);
|
||||||
|
|
||||||
async function downloadMetadata() {
|
async function downloadMetadata() {
|
||||||
if (!repo?.value || !pipeline?.value || !repoPermissions?.value?.push) {
|
if (!repo?.value || !pipeline?.value || !repoPermissions?.value?.push) {
|
||||||
|
|
Loading…
Reference in a new issue