Skip to content

Commit 57399d3

Browse files
committed
fixes to pipeline
1 parent 2bc8698 commit 57399d3

2 files changed

Lines changed: 26 additions & 10 deletions

File tree

.github/workflows/cd-langchain.yml

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish uipath-langchain-client to PyPI
1+
name: cd-langchain
22

33
on:
44
push:
@@ -7,26 +7,42 @@ on:
77
paths:
88
- 'packages/uipath_langchain_client/src/uipath_langchain_client/__version__.py'
99
workflow_run:
10-
workflows: ["Publish uipath-llm-client to PyPI"]
10+
workflows: ["cd"]
1111
types:
1212
- completed
13-
branches:
14-
- main
1513
workflow_dispatch:
1614

1715
jobs:
1816
build:
17+
if: >
18+
github.event_name == 'workflow_dispatch' ||
19+
20+
(
21+
github.event_name == 'push' &&
22+
!contains(
23+
join(github.event.commits.*.modified, ' '),
24+
'src/uipath_llm_client/__version__.py'
25+
)
26+
) ||
27+
28+
(
29+
github.event_name == 'workflow_run' &&
30+
github.event.workflow_run.conclusion == 'success' &&
31+
contains(
32+
join(github.event.workflow_run.head_commit.modified, ' '),
33+
'packages/uipath_langchain_client/src/uipath_langchain_client/__version__.py'
34+
) &&
35+
contains(
36+
join(github.event.workflow_run.head_commit.modified, ' '),
37+
'src/uipath_llm_client/__version__.py'
38+
)
39+
)
1940
name: Build package
2041
runs-on: ubuntu-latest
2142
environment: pypi
2243
permissions:
2344
contents: read
2445
id-token: write
25-
# Only run if triggered by push/dispatch, OR if the upstream workflow succeeded
26-
if: >
27-
github.event_name == 'push' ||
28-
github.event_name == 'workflow_dispatch' ||
29-
(github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success')
3046

3147
steps:
3248
- uses: actions/checkout@v6

.github/workflows/cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish uipath-llm-client to PyPI
1+
name: cd
22

33
on:
44
push:

0 commit comments

Comments
 (0)