mirror of
https://github.com/CompeyDev/setup-rokit.git
synced 2024-12-12 12:40:36 +00:00
no-trust-check -> trust-check
This commit is contained in:
parent
eda3a7c000
commit
916722ed67
4 changed files with 15 additions and 16 deletions
6
.github/actions/test/action.yml
vendored
6
.github/actions/test/action.yml
vendored
|
@ -6,8 +6,8 @@ author: ok-nick
|
|||
inputs:
|
||||
version:
|
||||
required: false
|
||||
no-trust-check:
|
||||
default: 'false'
|
||||
trust-check:
|
||||
default: 'true'
|
||||
required: false
|
||||
trusts:
|
||||
required: false
|
||||
|
@ -34,7 +34,7 @@ runs:
|
|||
uses: ./
|
||||
with:
|
||||
version: ${{ inputs.version }}
|
||||
no-trust-check: ${{ inputs.no-trust-check }}
|
||||
trust-check: ${{ inputs.no-trust-check }}
|
||||
trusts: ${{ inputs.trusts }}
|
||||
path: ${{ inputs.path }}
|
||||
token: ${{ inputs.token }}
|
||||
|
|
13
.github/workflows/CI.yml
vendored
13
.github/workflows/CI.yml
vendored
|
@ -19,7 +19,7 @@ jobs:
|
|||
|
||||
- uses: ./.github/actions/test
|
||||
with:
|
||||
no-trust-check: true
|
||||
trust-check: false
|
||||
|
||||
test_mac_no_trust:
|
||||
runs-on: macos-latest
|
||||
|
@ -28,7 +28,7 @@ jobs:
|
|||
|
||||
- uses: ./.github/actions/test
|
||||
with:
|
||||
no-trust-check: true
|
||||
trust-check: false
|
||||
|
||||
test_windows_no_trust:
|
||||
runs-on: windows-latest
|
||||
|
@ -37,7 +37,7 @@ jobs:
|
|||
|
||||
- uses: ./.github/actions/test
|
||||
with:
|
||||
no-trust-check: true
|
||||
trust-check: false
|
||||
|
||||
test_linux_with_trust:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -75,7 +75,7 @@ jobs:
|
|||
- uses: ./.github/actions/test
|
||||
with:
|
||||
version: v0.2.2
|
||||
no-trust-check: true
|
||||
trust-check: false
|
||||
path: "./project"
|
||||
|
||||
test_mac_version_and_path:
|
||||
|
@ -87,10 +87,9 @@ jobs:
|
|||
- uses: ./.github/actions/test
|
||||
with:
|
||||
version: v0.2.2
|
||||
no-trust-check: true
|
||||
trust-check: false
|
||||
path: "./project"
|
||||
|
||||
|
||||
test_windows_version_and_path:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
|
@ -100,5 +99,5 @@ jobs:
|
|||
- uses: ./.github/actions/test
|
||||
with:
|
||||
version: v0.2.2
|
||||
no-trust-check: true
|
||||
trust-check: false
|
||||
path: "./project"
|
||||
|
|
|
@ -18,7 +18,7 @@ steps:
|
|||
|name|description|default|
|
||||
|---|---|---|
|
||||
|`version`|`aftman` version in the form `vx.x.x`|-|
|
||||
|`no-trust-check`|Whether to check trusts|`false`|
|
||||
|`trust-check`|Whether to check trusts|`true`|
|
||||
|`trusts`|List of trusted tools separated by spaces|-|
|
||||
|`path`|Path to the `aftman.toml` directory|`./`|
|
||||
|`token`|Github token from `github.token`|`github.token`|
|
||||
|
|
10
action.yml
10
action.yml
|
@ -6,9 +6,9 @@ inputs:
|
|||
version:
|
||||
description: '`aftman` version in the form `vx.x.x`'
|
||||
required: false
|
||||
no-trust-check:
|
||||
trust-check:
|
||||
description: "Whether to check trusts"
|
||||
default: 'false'
|
||||
default: 'true'
|
||||
required: false
|
||||
trusts:
|
||||
description: 'List of trusted tools separated by spaces'
|
||||
|
@ -54,7 +54,7 @@ runs:
|
|||
shell: bash
|
||||
|
||||
- name: Setup trusts
|
||||
if: inputs.no-trust-check == 'false'
|
||||
if: inputs.trust-check == 'false'
|
||||
run: |
|
||||
for name in ${{ inputs.trusts }}; do
|
||||
aftman trust $name
|
||||
|
@ -64,8 +64,8 @@ runs:
|
|||
- name: Install tools
|
||||
run: |
|
||||
cd ${{ inputs.path }}
|
||||
if [ ${{ inputs.no-trust-check }} == true ]; then
|
||||
aftman install --no-trust-check
|
||||
if [ ${{ inputs.trust-check }} == true ]; then
|
||||
aftman install --trust-check
|
||||
else
|
||||
aftman install
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue