Skip to content

Commit

Permalink
chore: bump cargo-generate version (#66)
Browse files Browse the repository at this point in the history
* chore: bump cargo-generate version

* fix: use forked action

* fix: use correct way of using '--define'

* fix: escape new line

* fix: ditch new line

* fix: escape quotes

* fix: do not use quotes

* chore: use original action
  • Loading branch information
orhun authored Aug 4, 2024
1 parent 0ab4e27 commit f13da09
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run cargo generate
uses: cargo-generate/cargo-generate-action@v0.18.3
uses: cargo-generate/cargo-generate-action@v0.20.0
with:
name: ${{ env.PROJECT_NAME }}
template: simple
Expand All @@ -37,7 +37,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run cargo generate
uses: cargo-generate/cargo-generate-action@v0.18.3
uses: cargo-generate/cargo-generate-action@v0.20.0
with:
name: ${{ env.PROJECT_NAME }}
template: simple-async
Expand All @@ -60,11 +60,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run cargo generate
uses: cargo-generate/cargo-generate-action@v0.18.3
uses: cargo-generate/cargo-generate-action@v0.20.0
with:
name: ${{ env.PROJECT_NAME }}
template: component
template_values_file: .github/workflows/template.toml
arguments: --define=gh-username=ratatui --define=project-description=example --define=use-gitserver=false
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cargo check
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/template.toml

This file was deleted.

1 change: 1 addition & 0 deletions cargo-generate.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# configuration for https://cargo-generate.github.io/cargo-generate/

[template]
cargo_generate_version = ">=0.20.0"
sub_templates = ["simple", "simple-async", "component"]

0 comments on commit f13da09

Please sign in to comment.