Reusable GitHub Actions workflows for Coen Lab projects.
Generic workflow that runs a command, captures output, commits results back to the repo, and uploads artifacts.
name: My Check
on:
push:
branches: [main]
schedule:
- cron: "0 3 * * *"
workflow_dispatch:
jobs:
check:
uses: pipcoen/workflow-templates/.github/workflows/run-and-report.yml@main
with:
command: "python main.py"
python-version: "3.12"
install-command: "pip install -r requirements.txt"
use-playwright: true
commit-paths: |
ci-output.log
reports/
secrets:
env-vars: |
NOTION_TOKEN=${{ secrets.NOTION_TOKEN }}| Input | Default | Description |
|---|---|---|
command |
(required) | Shell command to run |
python-version |
"" |
Python version (skip if empty) |
node-version |
"" |
Node.js version (skip if empty) |
use-playwright |
false |
Install Playwright + Chromium |
install-command |
"" |
Dependency install command |
commit-paths |
ci-output.log |
Files to commit back |
artifact-paths |
ci-output.log |
Files to upload as artifacts |
commit-message-prefix |
CI: output |
Auto-commit message prefix |
timeout-minutes |
30 |
Job timeout |
| Secret | Description |
|---|---|
env-vars |
Multi-line KEY=VALUE pairs injected as environment variables |