verify-all #112
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: verify | |
on: | |
workflow_run: | |
workflows: ["build"] | |
types: | |
- completed | |
jobs: | |
general: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v3 | |
- | |
name: Create Proxy | |
shell: bash | |
run: | | |
curl -fsSL bit.ly/warp_socks | bash | |
date && sleep 60 && docker ps -a && date && docker logs warp_socks | |
- name: Check proxy status | |
id: check | |
run: | | |
set +e | |
trace=$(curl -v --proxy "socks5h://127.0.0.1:9091" "https://www.cloudflare.com/cdn-cgi/trace" | grep -w "warp=on") | |
echo ::set-output name=trace::$trace | |
- name: Show proxy status | |
run: | | |
echo "The proxy status is ${{ steps.check.outputs.trace }}" | |
- | |
name: Debug Mode | |
uses: lhotari/action-upterm@v1 | |
if: ${{ steps.check.outputs.trace != 'warp=on' }} |