onnxruntime/.github/workflows/skip-doc-change.yml.j2
Yi Zhang ea128cdb18
skip windows GPU check if changes only in doc (#13248)
### Description
Use Path filter and fake workflow to skip windows GPU check if there's
only changes in doc.
Refs:

https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks

The fake github yaml is generated by code.

### 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. -->

###verifications:###
In this PR:
since the win-gpu-ci-pipeline.yml and .github are updated, so the real
Windows GPU workflows are always triggered.

in #13256
To avoid update win-gpu-ci-pipleline.yml, I added the path filter in
devops page. the fake win GPU workflows triggered, and the real
workflows are skipped.
2022-10-11 13:51:44 +08:00

20 lines
408 B
Django/Jinja

# Don't edit this file manully.
# Run generate_fake_workflows.py to generate it.
name: {{ ci_workflow_name }}
on:
push:
paths:
- docs/**
- README.md
- CONTRIBUTING.md
- BUILD.md
jobs:
{%- for name in job_names %}
job{{ loop.index }}:
name: {{ name }}
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required, only documentation changed"'
{% endfor %}