Skip to content

Commit

Permalink
feat: update github action and cargo-generate config
Browse files Browse the repository at this point in the history
  • Loading branch information
fan-tastic-z committed Aug 6, 2024
1 parent 44fd764 commit add01a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ jobs:
- name: install nextest
uses: taiki-e/install-action@nextest
- uses: Swatinem/rust-cache@v2
- name: Get repository name
id: repo_name
run: |
echo "::set-output name=name::$(basename $GITHUB_REPOSITORY)"
- name: Replace package name in Cargo.toml
run: |
sed -i "s/{{project-name}}/${{ steps.repo_name.outputs.name }}/g" Cargo.toml
- name: Check code format
run: cargo fmt -- --check
- name: Check the package for errors
Expand Down
2 changes: 1 addition & 1 deletion cargo-generate.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[template]
ignore = ["cargo-generate.toml"]
cargo_generate_version = ">=0.21.0"
include = ["Cargo.toml", "cliff.toml"]

0 comments on commit add01a5

Please sign in to comment.