Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output host? #39

Open
jasonkuhrt opened this issue Sep 14, 2022 · 0 comments
Open

Output host? #39

jasonkuhrt opened this issue Sep 14, 2022 · 0 comments

Comments

@jasonkuhrt
Copy link

  await-fox-deployment:
    runs-on: ubuntu-latest
    outputs:
      url: ${{steps.format-outputs.outputs.url}}
      host: ${{steps.format-outputs.outputs.host}}
    steps:
      - name: Wait for Fox deployment
        uses: patrickedqvist/[email protected]
        id: await-fox-deployment
        with:
          token: ${{secrets.GITHUB_TOKEN}}
          max_timeout: 600 # 10 minutes
          check_interval: 10
      - name: Format Outputs
        id: format-outputs
        run: |
          if [[ '${{steps.await-fox-deployment.outputs.url}}' == https://* ]]; then
            host=$(echo '${{steps.await-fox-deployment.outputs.url}}' | cut -c 9-)
          else
            host='${{steps.await-fox-deployment.outputs.url}}'
          fi

          echo "::set-output name=url::${{steps.await-fox-deployment.outputs.url}}"
          echo "::set-output name=host::${host}"

I currently use the above code to output the host in addition to the URL. Would you be willing to have host as a built in output?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant