mirror of
https://github.com/dtolnay/install.git
synced 2025-01-31 07:01:20 +01:00
mdbook
This commit is contained in:
parent
5db909af00
commit
2240ffe933
1 changed files with 2 additions and 8 deletions
10
action.yml
10
action.yml
|
@ -2,12 +2,6 @@ name: cargo install
|
||||||
author: David Tolnay
|
author: David Tolnay
|
||||||
description: Fast `cargo install` action using a GitHub-based binary cache
|
description: Fast `cargo install` action using a GitHub-based binary cache
|
||||||
inputs:
|
inputs:
|
||||||
crate:
|
|
||||||
description: Name of crate as published to crates.io
|
|
||||||
required: true
|
|
||||||
bin:
|
|
||||||
description: Name of binary; default = same as crate name
|
|
||||||
required: false
|
|
||||||
github_token:
|
github_token:
|
||||||
description: Access token for connecting to GitHub API for artifact attestation; normally the ephemeral {{github.token}} when used in a GitHub workflow, or a personal access token {{secrets.GH_TOKEN}} in Gitea's act runner
|
description: Access token for connecting to GitHub API for artifact attestation; normally the ephemeral {{github.token}} when used in a GitHub workflow, or a personal access token {{secrets.GH_TOKEN}} in Gitea's act runner
|
||||||
default: ${{github.token}}
|
default: ${{github.token}}
|
||||||
|
@ -16,8 +10,8 @@ runs:
|
||||||
steps:
|
steps:
|
||||||
- name: Check inputs
|
- name: Check inputs
|
||||||
run: |
|
run: |
|
||||||
echo "crate=${{inputs.crate}}" >> $GITHUB_OUTPUT
|
echo "crate=mdbook" >> $GITHUB_OUTPUT
|
||||||
echo "bin=${{inputs.bin || inputs.crate}}" >> $GITHUB_OUTPUT
|
echo "bin=mdbook" >> $GITHUB_OUTPUT
|
||||||
shell: bash
|
shell: bash
|
||||||
id: inputs
|
id: inputs
|
||||||
- name: Determine cargo bin directory
|
- name: Determine cargo bin directory
|
||||||
|
|
Loading…
Add table
Reference in a new issue