Run Flyscrape scripts using Github Actions.
- 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 }}
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 }}"