fix cli exec statement in debug tab (#4643)

This commit is contained in:
Patrick Schratz 2025-01-04 12:22:58 +01:00 committed by GitHub
parent 7c31bcf327
commit 1da7a64349
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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."
} }
} }
}, },

View file

@ -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) {