File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 3
3
4
4
on :
5
5
workflow_dispatch :
6
- push :
7
- branches : publish
6
+ pull_request :
7
+ types :
8
+ # Only run when a PR is closed (which includes merges).
9
+ - closed
10
+ branches :
11
+ - publish
8
12
9
13
name : Quarto Publish
10
14
11
15
jobs :
12
16
publish :
17
+ # Run when the workflow is manually triggered or when a PR is merged.
18
+ if : github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true
13
19
runs-on : ubuntu-latest
14
20
permissions :
15
21
contents : write
Original file line number Diff line number Diff line change 39
39
" \n " ,
40
40
" Refer to [Demo](/examples/demo.html) to learn about possible syntax."
41
41
]
42
+ },
43
+ {
44
+ "cell_type" : " code" ,
45
+ "execution_count" : null ,
46
+ "id" : " 5d0510f2" ,
47
+ "metadata" : {},
48
+ "outputs" : [],
49
+ "source" : []
42
50
}
43
51
],
44
52
"metadata" : {
You can’t perform that action at this time.
0 commit comments