diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6ff666f..94fa489 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,7 +7,7 @@ jobs: runs-on: macos-latest name: Test a cf tunnel steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Run establish a cf tunnel id: test uses: vmactions/cf-tunnel@main diff --git a/index.js b/index.js index e594637..aebdd55 100644 --- a/index.js +++ b/index.js @@ -92,11 +92,7 @@ async function run(protocol, port) { continue; } core.info("server: " + server); - if (protocol === "http") { - await exec.exec("sh", [], { input: `echo "server= http://${server}" >> $GITHUB_OUTPUT` }); - } else { - await exec.exec("sh", [], { input: `echo "server=${server}" >> $GITHUB_OUTPUT` }); - } + await exec.exec("sh", [], { input: `echo "server=${server}" >> $GITHUB_OUTPUT` }); break; }