Skip to content

chore(deps): update actions/checkout action to v5 #57

chore(deps): update actions/checkout action to v5

chore(deps): update actions/checkout action to v5 #57

Workflow file for this run

name: Build Template
on:
workflow_dispatch:
pull_request:
merge_group:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
PROJECT_NAME: mytemplate
steps:
- uses: actions/checkout@v5
- uses: cargo-generate/cargo-generate-action@v0.20.0
with:
name: ${{ env.PROJECT_NAME }}
env:
CARGO_GENERATE_VALUE_GITHUB_ORG: dbanty
CARGO_GENERATE_VALUE_GITHUB_REPO: test
CARGO_GENERATE_VALUE_DESCRIPTION: test
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
# we need to move the generated project to a temp folder, away from the template project
# otherwise `cargo` runs would fail
# see https://github.com/rust-lang/cargo/issues/9922
- run: |
mv $PROJECT_NAME ${{ runner.temp }}/
cd ${{ runner.temp }}/$PROJECT_NAME
cargo check