Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
terminal

GitHub Action

Run Flyscrape Scripts

v1.0.0

Run Flyscrape Scripts

terminal

Run Flyscrape Scripts

Executes Flyscrape scripts through Github Actions

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Run Flyscrape Scripts

uses: MrFlynn/[email protected]

Learn more about this action in MrFlynn/flyscrape-action

Choose a version

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 }}"