update file name in the comment (#13275)

### Description
Correct the file name in the comments of the generated yaml.

### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
This commit is contained in:
Yi Zhang 2022-10-12 08:35:42 +08:00 committed by GitHub
parent 1e55949a70
commit 8a3407d54f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 4 deletions

View file

@ -1,5 +1,5 @@
# generate_skip_doc_change.py
import os
from pathlib import Path
from jinja2 import Environment, FileSystemLoader, Template
@ -27,7 +27,10 @@ WIN_GPU_CI_WORKFLOW = Skipped_Workflow(
def generate_fake_ci_yaml(template: Template, workflow: Skipped_Workflow):
content = template.render(ci_workflow_name=workflow.workflow_name, job_names=workflow.job_names)
py_file_name = os.path.basename(__file__)
content = template.render(
python_file_name=py_file_name, ci_workflow_name=workflow.workflow_name, job_names=workflow.job_names
)
filename = workflow.fake_file_name
with open(filename, mode="w", encoding="utf-8") as output_file:

View file

@ -1,5 +1,5 @@
# Don't edit this file manully.
# Run generate_fake_workflows.py to generate it.
# Run generate-skip-doc-change.py to generate it.
name: Windows GPU CI Pipeline
on:

View file

@ -1,5 +1,5 @@
# Don't edit this file manully.
# Run generate_fake_workflows.py to generate it.
# Run {{ python_file_name }} to generate it.
name: {{ ci_workflow_name }}
on: