Skip to content

Commit 15b3e6f

Browse files
committed
Only run examples.yml workflow from main branch
1 parent df703cc commit 15b3e6f

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

.github/workflows/examples.yml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ name: Examples
77

88
on:
99
push:
10+
branches: [ 'main' ]
1011
paths:
1112
- .github/workflows/examples.yml
1213
release:

lib/mix/tasks/e2e/update_examples_workflow.ex

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ defmodule Mix.Tasks.E2e.UpdateExamplesWorkflow do
6969
7070
on:
7171
push:
72+
branches: [ 'main' ]
7273
paths:
7374
- .github/workflows/examples.yml
7475
release:

test/mix/tasks/e2e/update_examples_workflow_test.exs

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ defmodule Mix.Tasks.E2e.UpdateExamplesWorkflowTest do
2727
2828
on:
2929
push:
30+
branches: [ 'main' ]
3031
paths:
3132
- .github/workflows/examples.yml
3233
release:
@@ -76,6 +77,7 @@ defmodule Mix.Tasks.E2e.UpdateExamplesWorkflowTest do
7677
7778
on:
7879
push:
80+
branches: [ 'main' ]
7981
paths:
8082
- .github/workflows/examples.yml
8183
release:

0 commit comments

Comments
 (0)