Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update cargo generate action to v0.18.5 #52

Merged
merged 1 commit into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.