Skip to content

snsinahub-org/search-remote-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Search Text in html page

This action helps you to search text in a remote html accessible via URL. If call's http status code = 200 and text found in the page then action responds true otherwise the return value will be false

Inputs

- uses: snsinahub-org/search-remote-html@v1.1.0
  id: search
  with:
    # Required: true
    url: https://example.com

    # Required true
    search: 'domain'

    # Required: false
    # Dafault: false
    ignore-ssl: true

Output

Name Type Expected values
found string ['true', 'false']
httpStatusCode string Http status code in the range of 2xx, 3xx, 4xx and 5xx

Example

- name: search
  uses: snsinahub-org/search-remote-html@v1.1.0
  id: search
  with:
    url: https://example.com
    search: 'domain'
    ignore-ssl: true
- name: search result print FOUND
  if: ${{ steps.search.outputs.found == 'true' }}
  run: |
    echo FOUND ${{ steps.search.outputs.found }}
    echo Http Status code ${{ steps.search.outputs.httpStatusCode }}
- name: search result print NOT FOUND
  if: ${{ steps.search.outputs.found == 'false' }}
  run: |
    echo NOT FOUND ${{ steps.search.outputs.found }}
    echo Http Status code ${{ steps.search.outputs.httpStatusCode }}

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •