Skip to content

Update main.yml

Update main.yml #3

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Screenshot
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: screenshot-website
# You may pin to the exact commit or the version.
# uses: swinton/screenshot-website@ebee86398fa0b725f4080fd8a016d845211dd279
uses: swinton/screenshot-website@v1.0.0
with:
# Source of the content to be captured, may be a URL or HTML content
source: https://www.tickertape.in/market-mood-index
# The destination filename the captured website will be written to
destination: screenshot.png