File tree Expand file tree Collapse file tree 3 files changed +12
-25
lines changed Expand file tree Collapse file tree 3 files changed +12
-25
lines changed Original file line number Diff line number Diff line change @@ -2,17 +2,21 @@ name: Build and Publish Docker Images
2
2
3
3
on :
4
4
push :
5
+ branches :
6
+ - main
5
7
paths :
6
8
- ' docker/**'
7
9
- ' .github/workflows/build-docker.yml'
8
- branches :
9
- - main
10
10
workflow_dispatch :
11
+ workflow_run :
12
+ workflows : ["Bump Version, Build and Publish Python"]
13
+ types :
14
+ - completed
11
15
12
16
jobs :
13
17
build :
14
18
runs-on : ubuntu-latest
15
-
19
+ if : ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
16
20
steps :
17
21
- name : Checkout code
18
22
uses : actions/checkout@v3
Original file line number Diff line number Diff line change 10
10
- ' mkdocs.yml'
11
11
- ' .github/workflows/build-docs.yml'
12
12
workflow_dispatch :
13
+ workflow_run :
14
+ workflows : ["Bump Version, Build and Publish Python"]
15
+ types :
16
+ - completed
13
17
14
18
jobs :
15
19
generate_and_publish_docs :
20
+ if : ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
16
21
permissions :
17
22
contents : write
18
23
pages : write
Original file line number Diff line number Diff line change 72
72
uv build
73
73
uv publish
74
74
75
- - name : Dispatch Docs Workflow
76
- uses : actions/github-script@v6
77
- with :
78
- script : |
79
- github.rest.actions.createWorkflowDispatch({
80
- owner: context.repo.owner,
81
- repo: context.repo.repo,
82
- workflow_id: 'build-docs.yml',
83
- ref: context.ref
84
- })
85
-
86
- - name : Dispatch Docker Workflow
87
- uses : actions/github-script@v6
88
- with :
89
- script : |
90
- github.rest.actions.createWorkflowDispatch({
91
- owner: context.repo.owner,
92
- repo: context.repo.repo,
93
- workflow_id: 'build-docker.yml',
94
- ref: context.ref
95
- })
96
-
97
75
- name : Get previous version tag
98
76
id : get_previous_version_tag
99
77
run : |
You can’t perform that action at this time.
0 commit comments