diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index b9d957facf..69ffb3b035 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -20,7 +20,7 @@ jobs: uses: orhun/git-cliff-action@v1 id: git-cliff with: - config: cliff.toml + config: config/cliff.toml args: -vv --latest --strip header env: OUTPUT: CHANGES.md @@ -91,7 +91,7 @@ jobs: shell: bash run: | mkdir -p release/completions/ - cp {LICENSE,README.md,CHANGELOG.md,cliff.toml} release/ + cp {LICENSE,README.md,CHANGELOG.md} release/ OUT_DIR=release/completions/ cargo run --release --bin git-cliff-completions if [ "${{ matrix.OS }}" = "windows-2019" ]; then cp target/${{ matrix.TARGET }}/release/git-cliff.exe release/ diff --git a/README.md b/README.md index f73e2674f8..b4ea6be6a4 100644 --- a/README.md +++ b/README.md @@ -225,7 +225,7 @@ Also, see the [continuous deployment workflow](./.github/workflows/cd.yml) of th **git-cliff** configuration file supports [TOML](https://github.com/toml-lang/toml) (preferred) and [YAML](https://yaml.org) formats. -See [cliff.toml](./cliff.toml) for an example. +See [config/cliff.toml](./config/cliff.toml) for an example. ### changelog @@ -442,7 +442,7 @@ Examples are based on the following Git history: See [examples](./examples/) directory for example configuration files. -#### [Basic](./cliff.toml) +#### [Basic](./config/cliff.toml)
Raw Output diff --git a/cliff.toml b/config/cliff.toml similarity index 100% rename from cliff.toml rename to config/cliff.toml diff --git a/git-cliff-core/src/config.rs b/git-cliff-core/src/config.rs index 10746f9f8e..38823209e7 100644 --- a/git-cliff-core/src/config.rs +++ b/git-cliff-core/src/config.rs @@ -78,6 +78,7 @@ mod test { .parent() .unwrap() .to_path_buf() + .join("config") .join("cliff.toml") .to_str() .unwrap()