mirror of
https://github.com/obi1kenobi/cargo-semver-checks-action.git
synced 2024-11-22 07:59:32 +01:00
Add github-token input (#13)
This commit is contained in:
parent
b4b317a6f3
commit
9d38089c3c
3 changed files with 6 additions and 5 deletions
4
.github/workflows/test-action.yml
vendored
4
.github/workflows/test-action.yml
vendored
|
@ -36,8 +36,6 @@ jobs:
|
|||
run: git checkout patch_change
|
||||
- name: Run the action
|
||||
uses: ./action/
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
# Assumes that the latest published normal version of `ref_slice` smaller
|
||||
# than 1.2.2 exports a public function `ref_slice`.
|
||||
# TODO: Change the crate version in the corresponding branch `major_change`
|
||||
|
@ -49,8 +47,6 @@ jobs:
|
|||
- name: Run the action (allowed to fail)
|
||||
id: action_major
|
||||
uses: ./action/
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
continue-on-error: true
|
||||
- name: Fail if the action has not returned any errors (but it should have)
|
||||
if: steps.action_major.outcome != 'failure'
|
||||
|
|
|
@ -14,7 +14,8 @@ Every argument is optional.
|
|||
|
||||
| Input | Description | Default |
|
||||
|--------------------|-----------------------------------------------------------------------------------------------------------------------------------|---------|
|
||||
| package | The package whose API to check for semver (in Package Id Specification format, see https://doc.rust-lang.org/cargo/reference/pkgid-spec.html for reference). If not set, all packages in the workspace are processed. | |
|
||||
| github-token | The `GITHUB_TOKEN` secret, which is necessary to download precompiled binaries from GitHub API. By default, the [automatic GitHub token](https://docs.github.com/en/actions/security-guides/automatic-token-authentication) provided to the workflow will be used. The token may be alternatively passed in an environment variable `GITHUB_TOKEN`. | |
|
||||
| package | The package whose API to check for semver (in Package Id Specification format, see https://doc.rust-lang.org/cargo/reference/pkgid-spec.html for reference). If not set, all packages in the workspace are processed. | |
|
||||
| manifest-path | Path to Cargo.toml of crate or workspace to check. Has an effect only if `package` is not specified. | |
|
||||
| verbose | Enables verbose output of `cargo-semver-checks`. | `false` |
|
||||
|
||||
|
|
|
@ -4,6 +4,10 @@ branding:
|
|||
icon: 'check-circle'
|
||||
color: 'green'
|
||||
inputs:
|
||||
github-token:
|
||||
description: 'The GITHUB_TOKEN secret, which is necessary to download precompiled binaries from GitHub API. By default, the automatic GitHub token provided to the workflow will be used.'
|
||||
required: false
|
||||
default: ${{ github.token }}
|
||||
package:
|
||||
description: 'The package whose API to check for semver (in Package Id Specification format, see https://doc.rust-lang.org/cargo/reference/pkgid-spec.html for reference). If not set, all packages in the workspace are processed.'
|
||||
required: false
|
||||
|
|
Loading…
Reference in a new issue