diff --git a/README.md b/README.md index 33aedd8..b4dbdd0 100644 --- a/README.md +++ b/README.md @@ -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] ``` diff --git a/README_EN.md b/README_EN.md index b800cfe..ae92101 100644 --- a/README_EN.md +++ b/README_EN.md @@ -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] ``` diff --git a/action.yml b/action.yml index 4e7c396..a12fa44 100644 --- a/action.yml +++ b/action.yml @@ -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