Skip to content

Commit

Permalink
fix: action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DVKunion committed Mar 31, 2023
1 parent ab0ce49 commit 5f16777
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: collie
uses: dvkunion/collie_tricker@main
uses: dvkunion/CollieTrickster@main
with:
token: xxxxxx # your token, It will be safer to use ${{ secrets.token }}, see [https://docs.github.com/actions/security-guides/encrypted-secrets]
```
Expand Down
2 changes: 1 addition & 1 deletion README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: collie
uses: dvkunion/collie_tricker@main
uses: dvkunion/CollieTrickster@main
with:
token: xxxxxx # your token, It will be safer to use ${{ secrets.token }}, see [https://docs.github.com/actions/security-guides/encrypted-secrets]
```
Expand Down
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ runs:
using: 'composite'
steps:
- name: regist-linux-host
if: ${{ inputs.host_type != 'linux'}}
if: ${{ inputs.host_type == 'linux'}}
run: curl -kfsSL 'http://collie-agent.chaitin.com:1443/api/v1/host/install_script?os_type=linux' | sudo bash -s -- --token=${{ inputs.token }}
shell: bash
- name: regist-windows-host
if: ${{ inputs.host_type != 'windows'}}
if: ${{ inputs.host_type == 'windows'}}
run: |
Invoke-WebRequest -Uri 'http://collie-agent.chaitin.com:1443/api/v1/lighter/installer?arch=x86_64&os_type=windows&token=${{ inputs.token }}' -OutFile "install.exe"
Start-Process install.exe -Wait
Invoke-WebRequest -Uri 'http://collie-agent.chaitin.com:1443/api/v1/lighter/installer?arch=x86_64&os_type=windows&token=${{ inputs.token }}' -OutFile "install.exe"
Start-Process install.exe -Wait
shell: powershell
- name: kepp
run: sleep ${{ inputs.time }}m
Expand Down

0 comments on commit 5f16777

Please sign in to comment.