Skip to content

run scratchattach script #5

run scratchattach script

run scratchattach script #5

Workflow file for this run

name: run scratchattach script
on:
workflow_dispatch:
inputs:
script:
description: "Script to run"
required: true
type: string
default: "message_viewer.py"
schedule:
- cron: "*/300 * * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v2 # checkout the repository content to github runner
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.11.3' # install the python version needed
- name: install python packages
run: |
pip install -U scratchattach
python -m pip install --upgrade pip
- name: execute py script # run message_viewer.py
run: |
python3 ${{ inputs.script }}