Skip to content

MrFlynn/flyscrape-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

flyscrape-action

tests

Run Flyscrape scripts using Github Actions.

Usage

- uses: MrFlynn/flyscrape-action@v1
  id: run-flyscrape
  with:
    # Version of Flyscrape used to execute the script.
    #
    # Default: latest
    version: ''

    # Arguments to pass to `flyscrape run`. See
    # https://github.com/philippta/flyscrape for a complete list of options.
    args: ''

    # Path to script executed by Flyscrape. This input is required.
    script: ''
  env:
    # Required to access Github API to find download URL for specific Flyscrape
    # version.
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Getting Script Output

Assuming you haven't saved the content of the script to a file, the output can be retrived from this action's output. Extending the example above, you can echo the output using this additional action

- name: Print result
  run: |
    echo "${{ steps.run-flyscrape.outputs.output }}"

About

:octocat: Run flyscrape scripts using Github Actions.

Resources

License

Stars

Watchers

Forks