Skip to content

pipcoen/workflow-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Workflow Templates

Reusable GitHub Actions workflows for Coen Lab projects.

Available Templates

run-and-report.yml

Generic workflow that runs a command, captures output, commits results back to the repo, and uploads artifacts.

Usage

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 }}

Inputs

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

Secrets

Secret Description
env-vars Multi-line KEY=VALUE pairs injected as environment variables

About

Reusable GitHub Actions workflow templates for Coen Lab projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors