Skip to content

Commit

Permalink
infra: nonmaster release checkbox (#20945)
Browse files Browse the repository at this point in the history
Co-authored-by: ccurme <[email protected]>
  • Loading branch information
efriis and ccurme authored Apr 26, 2024
1 parent d4aec8f commit 078c5d9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,19 @@ on:
required: true
type: string
default: 'libs/langchain'
dangerous-nonmaster-release:
required: false
type: boolean
default: false
description: "Release from a non-master branch (danger!)"

env:
PYTHON_VERSION: "3.11"
POETRY_VERSION: "1.7.1"

jobs:
build:
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master' || inputs.dangerous-nonmaster-release
environment: Scheduled testing
runs-on: ubuntu-latest

Expand Down Expand Up @@ -301,4 +306,4 @@ jobs:
draft: false
generateReleaseNotes: true
tag: v${{ needs.build.outputs.version }}
commit: master
commit: ${{ github.sha }}

0 comments on commit 078c5d9

Please sign in to comment.