Skip to content

Take a Screenshot #1150

Take a Screenshot

Take a Screenshot #1150

Workflow file for this run

name: Take a Screenshot
on:
workflow_dispatch:
inputs:
Files:
description: 'URL(s) or File(s) to take screenshot of (seperate by comma):'
required: true
default: "html/quote.html,"
schedule:
- cron: "59 23, * * *"
jobs:
Screenshotter:
runs-on: ubuntu-latest
steps:
- name: Check out this repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Installed package list
run: apt list --installed
- name: Install all necessary packages
run: pip install html2image requests
# pygal jinja2 pipreqs
- name: Run the quote generator
working-directory: ./
run: |
python .github/workflows/generator.py
# python .github/workflows/random2.py
continue-on-error: true
- name: Commit and Push
id: updateQuotes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A
git commit -m "Image updated"
git push
continue-on-error: true
- name: Check on failures
if: steps.updateQuotes.outcome != 'success'
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
filename: .github/workflows/workflow_failed_template.md