Skip to content

Commit

Permalink
add branch support
Browse files Browse the repository at this point in the history
  • Loading branch information
tuulos committed May 19, 2024
1 parent 2a0f5b7 commit 8f32934
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
--perimeter default \
--github-actions
- name: Run helloworld flow
- name: Run tests
run: |-
python hello.py run --with kubernetes
- name: Deploy to production
run: |-
python hello.py argo-workflows create
python hello.py --branch ${{ github.head_ref || github.ref_name }} argo-workflows create
3 changes: 2 additions & 1 deletion hello.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from metaflow import FlowSpec, step, card, schedule
from metaflow import FlowSpec, step, card, project

@project(name='mlproject')
class GitHubActionsDemo(FlowSpec):

@step
Expand Down

0 comments on commit 8f32934

Please sign in to comment.