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:
|
inputs:
|
||||||
version:
|
version:
|
||||||
required: false
|
required: false
|
||||||
no-trust-check:
|
trust-check:
|
||||||
default: 'false'
|
default: 'true'
|
||||||
required: false
|
required: false
|
||||||
trusts:
|
trusts:
|
||||||
required: false
|
required: false
|
||||||
|
@ -34,7 +34,7 @@ runs:
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
version: ${{ inputs.version }}
|
version: ${{ inputs.version }}
|
||||||
no-trust-check: ${{ inputs.no-trust-check }}
|
trust-check: ${{ inputs.no-trust-check }}
|
||||||
trusts: ${{ inputs.trusts }}
|
trusts: ${{ inputs.trusts }}
|
||||||
path: ${{ inputs.path }}
|
path: ${{ inputs.path }}
|
||||||
token: ${{ inputs.token }}
|
token: ${{ inputs.token }}
|
||||||
|
|
13
.github/workflows/CI.yml
vendored
13
.github/workflows/CI.yml
vendored
|
@ -19,7 +19,7 @@ jobs:
|
||||||
|
|
||||||
- uses: ./.github/actions/test
|
- uses: ./.github/actions/test
|
||||||
with:
|
with:
|
||||||
no-trust-check: true
|
trust-check: false
|
||||||
|
|
||||||
test_mac_no_trust:
|
test_mac_no_trust:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
@ -28,7 +28,7 @@ jobs:
|
||||||
|
|
||||||
- uses: ./.github/actions/test
|
- uses: ./.github/actions/test
|
||||||
with:
|
with:
|
||||||
no-trust-check: true
|
trust-check: false
|
||||||
|
|
||||||
test_windows_no_trust:
|
test_windows_no_trust:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
@ -37,7 +37,7 @@ jobs:
|
||||||
|
|
||||||
- uses: ./.github/actions/test
|
- uses: ./.github/actions/test
|
||||||
with:
|
with:
|
||||||
no-trust-check: true
|
trust-check: false
|
||||||
|
|
||||||
test_linux_with_trust:
|
test_linux_with_trust:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -75,7 +75,7 @@ jobs:
|
||||||
- uses: ./.github/actions/test
|
- uses: ./.github/actions/test
|
||||||
with:
|
with:
|
||||||
version: v0.2.2
|
version: v0.2.2
|
||||||
no-trust-check: true
|
trust-check: false
|
||||||
path: "./project"
|
path: "./project"
|
||||||
|
|
||||||
test_mac_version_and_path:
|
test_mac_version_and_path:
|
||||||
|
@ -87,10 +87,9 @@ jobs:
|
||||||
- uses: ./.github/actions/test
|
- uses: ./.github/actions/test
|
||||||
with:
|
with:
|
||||||
version: v0.2.2
|
version: v0.2.2
|
||||||
no-trust-check: true
|
trust-check: false
|
||||||
path: "./project"
|
path: "./project"
|
||||||
|
|
||||||
|
|
||||||
test_windows_version_and_path:
|
test_windows_version_and_path:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -100,5 +99,5 @@ jobs:
|
||||||
- uses: ./.github/actions/test
|
- uses: ./.github/actions/test
|
||||||
with:
|
with:
|
||||||
version: v0.2.2
|
version: v0.2.2
|
||||||
no-trust-check: true
|
trust-check: false
|
||||||
path: "./project"
|
path: "./project"
|
||||||
|
|
|
@ -18,7 +18,7 @@ steps:
|
||||||
|name|description|default|
|
|name|description|default|
|
||||||
|---|---|---|
|
|---|---|---|
|
||||||
|`version`|`aftman` version in the form `vx.x.x`|-|
|
|`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|-|
|
|`trusts`|List of trusted tools separated by spaces|-|
|
||||||
|`path`|Path to the `aftman.toml` directory|`./`|
|
|`path`|Path to the `aftman.toml` directory|`./`|
|
||||||
|`token`|Github token from `github.token`|`github.token`|
|
|`token`|Github token from `github.token`|`github.token`|
|
||||||
|
|
10
action.yml
10
action.yml
|
@ -6,9 +6,9 @@ inputs:
|
||||||
version:
|
version:
|
||||||
description: '`aftman` version in the form `vx.x.x`'
|
description: '`aftman` version in the form `vx.x.x`'
|
||||||
required: false
|
required: false
|
||||||
no-trust-check:
|
trust-check:
|
||||||
description: "Whether to check trusts"
|
description: "Whether to check trusts"
|
||||||
default: 'false'
|
default: 'true'
|
||||||
required: false
|
required: false
|
||||||
trusts:
|
trusts:
|
||||||
description: 'List of trusted tools separated by spaces'
|
description: 'List of trusted tools separated by spaces'
|
||||||
|
@ -54,7 +54,7 @@ runs:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Setup trusts
|
- name: Setup trusts
|
||||||
if: inputs.no-trust-check == 'false'
|
if: inputs.trust-check == 'false'
|
||||||
run: |
|
run: |
|
||||||
for name in ${{ inputs.trusts }}; do
|
for name in ${{ inputs.trusts }}; do
|
||||||
aftman trust $name
|
aftman trust $name
|
||||||
|
@ -64,8 +64,8 @@ runs:
|
||||||
- name: Install tools
|
- name: Install tools
|
||||||
run: |
|
run: |
|
||||||
cd ${{ inputs.path }}
|
cd ${{ inputs.path }}
|
||||||
if [ ${{ inputs.no-trust-check }} == true ]; then
|
if [ ${{ inputs.trust-check }} == true ]; then
|
||||||
aftman install --no-trust-check
|
aftman install --trust-check
|
||||||
else
|
else
|
||||||
aftman install
|
aftman install
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue