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.