Skip to content

Commit

Permalink
Bump minimum cargo-generate version to 0.17.0; this one supports requ…
Browse files Browse the repository at this point in the history
…ired rhai functionality
  • Loading branch information
annenkov committed Sep 6, 2023
1 parent 9e58b2b commit 8a7c015
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
submodules: true

- name: Run cargo-generate
uses: cargo-generate/cargo-generate-action@v0.16.0
uses: cargo-generate/cargo-generate-action@v0.17.5
with:
name: ${{ env.PROJECT_NAME }}
template: ${{ matrix.crates }}
Expand Down Expand Up @@ -131,7 +131,7 @@ jobs:
submodules: true

- name: Run cargo-generate
uses: cargo-generate/cargo-generate-action@v0.16.0
uses: cargo-generate/cargo-generate-action@v0.17.5
with:
name: ${{ env.PROJECT_NAME }}
template: templates/credential-registry
Expand Down Expand Up @@ -178,7 +178,7 @@ jobs:
submodules: true

- name: Run cargo-generate
uses: cargo-generate/cargo-generate-action@v0.16.0
uses: cargo-generate/cargo-generate-action@v0.17.5
with:
name: ${{ env.PROJECT_NAME }}
template: ${{ matrix.crates }}
Expand Down Expand Up @@ -228,7 +228,7 @@ jobs:
submodules: true

- name: Run cargo-generate
uses: cargo-generate/cargo-generate-action@v0.16.0
uses: cargo-generate/cargo-generate-action@v0.17.5
with:
name: ${{ env.PROJECT_NAME }}
template: templates/credential-registry
Expand Down Expand Up @@ -272,7 +272,7 @@ jobs:
submodules: true

- name: Run cargo-generate
uses: cargo-generate/cargo-generate-action@v0.16.0
uses: cargo-generate/cargo-generate-action@v0.17.5
with:
name: ${{ env.PROJECT_NAME }}
template: ${{ matrix.crates }}
Expand Down Expand Up @@ -316,7 +316,8 @@ jobs:
submodules: true

- name: Run cargo-generate
# version 0.17.5 is required for the rhai pre-script to work correctly
# at least version 0.17.0 is required for the rhai pre-script to work correctly;
# the closest available version of `cargo-generate-action` is 0.17.5
uses: cargo-generate/[email protected]
with:
name: ${{ env.PROJECT_NAME }}
Expand Down
2 changes: 1 addition & 1 deletion templates/cis2-nft/cargo-generate.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[template]
cargo_generate_version = ">= 0.16.0, < 0.19.0"
cargo_generate_version = ">= 0.17.0, < 0.19.0"

[placeholders]
description = { type="string", prompt="Description for the project?" }
Expand Down
2 changes: 1 addition & 1 deletion templates/credential-registry/cargo-generate.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[template]
cargo_generate_version = ">= 0.16.0, < 0.19.0"
cargo_generate_version = ">= 0.17.0, < 0.19.0"

[hooks]
pre = ["pre-script.rhai"] # a script for setting default values for the variables when `template_type = default`
Expand Down
2 changes: 1 addition & 1 deletion templates/default/cargo-generate.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[template]
cargo_generate_version = ">= 0.16.0, < 0.19.0"
cargo_generate_version = ">= 0.17.0, < 0.19.0"

[placeholders]
description = { type="string", prompt="Description for the project?" }

0 comments on commit 8a7c015

Please sign in to comment.