From 805f7cd74fde1bbe41df2e5daec17036c52c1593 Mon Sep 17 00:00:00 2001 From: Marco Ieni <11428655+MarcoIeni@users.noreply.github.com> Date: Tue, 28 Nov 2023 21:02:55 +0100 Subject: [PATCH] chore: update cargo generate action to v0.18.5 --- .github/workflows/build.yml | 6 +++--- CONTRIBUTING.md | 7 ++----- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7121199..35c422f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,11 +14,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.18.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 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7dba01c..b56debf 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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.