Skip to content

Commit

Permalink
Add gh wf
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <[email protected]>
  • Loading branch information
pingsutw committed Dec 14, 2024
1 parent 82d312a commit 6149c08
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/register_and_run_wf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: run flyte workflow

on:
workflow_call:
inputs:
# config-path:
# required: true
# type: string
workflow_directory:
required: true
type: string
workflow_file:
required: true
type: string
workflow_name:
required: true
type: string

# secrets:
# token:
# required: true

jobs:
register-and-run-workflow:
runs-on: ubuntu-latest
# env:
# UNION_API_KEY: ${{ secrets.UNION_API_KEY }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ format('{0}-pip-{1}', runner.os, hashFiles('dev-requirements.in', 'requirements.in')) }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Register the workflows
working-directory: ${{ inputs.workflow_directory }}
run: |
union run ${{ inputs.workflow_file }} ${{ inputs.workflow_name }}

0 comments on commit 6149c08

Please sign in to comment.