mirror of
https://github.com/hwchase17/langchain
synced 2024-10-29 17:07:25 +00:00
a7eba8b006
This is safer than the prior approach, since it's safe by default: the release workflows never get triggered for non-merged PRs, so there's no possibility of a buggy conditional accidentally letting a workflow proceed when it shouldn't have. The only loss is that publishing no longer requires a `release` label on the merged PR that bumps the version. We can add a separate CI step that enforces that part as a condition for merging into `master`, if desirable.
19 lines
350 B
YAML
19 lines
350 B
YAML
---
|
|
name: libs/experimental Release
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- 'libs/experimental/pyproject.toml'
|
|
workflow_dispatch: # Allows to trigger the workflow manually in GitHub UI
|
|
|
|
jobs:
|
|
release:
|
|
uses:
|
|
./.github/workflows/_release.yml
|
|
with:
|
|
working-directory: libs/experimental
|
|
secrets: inherit
|