Skip to content

Commit

Permalink
Merge pull request #5 from DVKunion/fix/srcipt
Browse files Browse the repository at this point in the history
fix: get check scripts from oss
  • Loading branch information
DVKunion authored Apr 13, 2023
2 parents a0bfaee + 17c8857 commit 99fc827
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ runs:
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 }}
chmod +x check.sh && ./check.sh
curl -kfsSL 'https://dvkunion.oss-cn-shanghai.aliyuncs.com/CollieTrickster/check.sh' | sudo bash -s
shell: bash
- name: regist-windows-host
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
Set-ExecutionPolicy RemoteSigned -Force
Invoke-WebRequest -Uri 'https://dvkunion.oss-cn-shanghai.aliyuncs.com/CollieTrickster/check.ps1' -OutFile "check.ps1"
.\check.ps1
shell: powershell

0 comments on commit 99fc827

Please sign in to comment.