Skip to content

Enhance workflow with manual dispatch and inputs #31

Enhance workflow with manual dispatch and inputs

Enhance workflow with manual dispatch and inputs #31

Workflow file for this run

name: Python TreeOM Sync
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
inputs:
commit_sha:
description: 'Commit SHA to checkout and run workflow'
required: false
default: 'main'
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.commit_sha }}
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: TreeOM CLI Test
run: |
python treeom_cli.py --mode sync --source GitHubEvents
- name: Archive Artifacts
uses: actions/upload-artifact@v4
with:
name: resonance-log
path: logs/*
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: my-artifact
path: path/to/artifact