Skip to content

Commit 8f32934

Browse files
committed
add branch support
1 parent 2a0f5b7 commit 8f32934

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727
--perimeter default \
2828
--github-actions
2929
30-
- name: Run helloworld flow
30+
- name: Run tests
3131
run: |-
3232
python hello.py run --with kubernetes
3333
3434
- name: Deploy to production
3535
run: |-
36-
python hello.py argo-workflows create
36+
python hello.py --branch ${{ github.head_ref || github.ref_name }} argo-workflows create

hello.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
from metaflow import FlowSpec, step, card, schedule
1+
from metaflow import FlowSpec, step, card, project
22

3+
@project(name='mlproject')
34
class GitHubActionsDemo(FlowSpec):
45

56
@step

0 commit comments

Comments
 (0)