infra: nonmaster release checkbox (#20945)

Co-authored-by: ccurme <chester.curme@gmail.com>
This commit is contained in:
Erick Friis 2024-04-26 11:50:07 -07:00 committed by GitHub
parent d4aec8fc8f
commit 078c5d9bc6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,6 +13,11 @@ on:
required: true required: true
type: string type: string
default: 'libs/langchain' default: 'libs/langchain'
dangerous-nonmaster-release:
required: false
type: boolean
default: false
description: "Release from a non-master branch (danger!)"
env: env:
PYTHON_VERSION: "3.11" PYTHON_VERSION: "3.11"
@ -20,7 +25,7 @@ env:
jobs: jobs:
build: build:
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master' || inputs.dangerous-nonmaster-release
environment: Scheduled testing environment: Scheduled testing
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -301,4 +306,4 @@ jobs:
draft: false draft: false
generateReleaseNotes: true generateReleaseNotes: true
tag: v${{ needs.build.outputs.version }} tag: v${{ needs.build.outputs.version }}
commit: master commit: ${{ github.sha }}