Skip to content

Commit

Permalink
chore: update cargo generate action to v0.18.5 (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoIeni authored Nov 28, 2023
1 parent ce66987 commit 03e772e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run cargo generate
uses: cargo-generate/[email protected].3
uses: cargo-generate/[email protected].5
with:
name: ${{ env.PROJECT_NAME }}
subfolder: template
template_values_file: .github/workflows/template_values.toml
template: template
arguments: "--template-values-file .github/workflows/template_values.toml --verbose"
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cargo check
Expand Down
7 changes: 2 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,8 @@ Try to do one pull request per change.
## GitHub Actions

When we have to mix GitHub actions variables with the `{{ }}` liquid syntax,
GitHub actions variable are written in the format
`{{ "{{ github.variable " }}}}` instead of `{{ github.variable }}`.

Of course, when doing `cargo generate` the ugly version is replaced with the
expected one.
GitHub actions variables are written in the format
`{{ "{{ github.variable }}" }}` instead of `{{ github.variable }}`.

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

0 comments on commit 03e772e

Please sign in to comment.