[Added] Autodetection of .kibot.yml files
- So people using CI/CD can name all YAML files `.yml` (DOS legacy?)
This commit is contained in:
parent
a48d014541
commit
af2aad1659
|
|
@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
### Added
|
||||
- General:
|
||||
- Operations that copies the project now also copies the PRL and the DRU
|
||||
- Files named *.kibot.yml are also detected as configuration files
|
||||
- Command line:
|
||||
- `--help-list-offsets` to list footprint offsets (JLCPCB)
|
||||
- `--help-list-rotations` to list footprint rotations (JLCPCB)
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ The `uses: actions/checkout` refers to a specific repo, [GitHub Actions](https:/
|
|||
|
||||
## Caveats, Gotchyas, and Pitfalls
|
||||
|
||||
1. KiBot requires a `{meaningful_name}.kibot.yaml` file name scheme. While most places use `*.yml` and `*.yaml` interchangeably, it is specific here that `*.kibot.yml` won't work. This is especially odd since GitHub uses `*.yml` and kibot uses `*.yaml`.
|
||||
1. KiBot requires a `{meaningful_name}.kibot.yaml` file name scheme. You can also use `{meaningful_name}.kibot.yml`.
|
||||
|
||||
## Different ways of doing things
|
||||
|
||||
|
|
|
|||
|
|
@ -215,7 +215,7 @@ def list_variants(logger, only_names):
|
|||
def solve_config(a_plot_config, quiet=False):
|
||||
plot_config = a_plot_config
|
||||
if not plot_config:
|
||||
plot_configs = glob('*.kibot.yaml')+glob('*.kiplot.yaml')+glob('*.kibot.yaml.gz')
|
||||
plot_configs = glob('*.kibot.yaml')+glob('*.kiplot.yaml')+glob('*.kibot.yaml.gz')+glob('*.kibot.yml')
|
||||
if len(plot_configs) == 1:
|
||||
plot_config = plot_configs[0]
|
||||
if not quiet:
|
||||
|
|
|
|||
Loading…
Reference in New Issue