set release type

This commit is contained in:
Ishaan Jaff 2024-04-04 18:02:37 -07:00
parent 0dd7ab44ed
commit 280a3d580b

View file

@ -18,6 +18,18 @@ env:
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
jobs:
determine-release-type:
runs-on: ubuntu-latest
outputs:
type_release: ${{ steps.set-release-type.outputs.type_release }}
steps:
- name: Set release type
id: set-release-type
run: |
if [ "${{ github.event.inputs.stable }}" == "true" ]; then
echo "type_release=stable" >> $GITHUB_ENV
else
echo "type_release=latest" >> $GITHUB_ENV
docker-hub-deploy:
if: github.repository == 'BerriAI/litellm'
runs-on: ubuntu-latest
@ -63,12 +75,6 @@ jobs:
packages: write
#
steps:
- name: Set release type
run: |
if ${{ github.event.inputs.stable == 'true' }}; then
echo "type_release=stable" >> $GITHUB_ENV
else
echo "type_release=latest" >> $GITHUB_ENV
- name: Checkout repository
uses: actions/checkout@v4
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
@ -144,12 +150,6 @@ jobs:
contents: read
packages: write
steps:
- name: Set release type
run: |
if ${{ github.event.inputs.stable == 'true' }}; then
echo "type_release=stable" >> $GITHUB_ENV
else
echo "type_release=latest" >> $GITHUB_ENV
- name: Checkout repository
uses: actions/checkout@v4