Skip to content

Commit 03e772e

Browse files
authored
chore: update cargo generate action to v0.18.5 (#52)
1 parent ce66987 commit 03e772e

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
- name: Checkout repository
1515
uses: actions/checkout@v4
1616
- name: Run cargo generate
17-
uses: cargo-generate/[email protected].3
17+
uses: cargo-generate/[email protected].5
1818
with:
1919
name: ${{ env.PROJECT_NAME }}
20-
subfolder: template
21-
template_values_file: .github/workflows/template_values.toml
20+
template: template
21+
arguments: "--template-values-file .github/workflows/template_values.toml --verbose"
2222
- name: Install Rust toolchain
2323
uses: dtolnay/rust-toolchain@stable
2424
- name: Cargo check

CONTRIBUTING.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,8 @@ Try to do one pull request per change.
2525
## GitHub Actions
2626

2727
When we have to mix GitHub actions variables with the `{{ }}` liquid syntax,
28-
GitHub actions variable are written in the format
29-
`{{ "{{ github.variable " }}}}` instead of `{{ github.variable }}`.
30-
31-
Of course, when doing `cargo generate` the ugly version is replaced with the
32-
expected one.
28+
GitHub actions variables are written in the format
29+
`{{ "{{ github.variable }}" }}` instead of `{{ github.variable }}`.
3330

3431
See [Continuous delivery](https://github.com/rust-github/template/blob/main/.github/workflows/cd.yml)
3532
as an example.

0 commit comments

Comments
 (0)