From 280a3d580bcacb2d84b4f9f951b93f02d7af38bf Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Thu, 4 Apr 2024 18:02:37 -0700 Subject: [PATCH] set release type --- .github/workflows/ghcr_deploy.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ghcr_deploy.yml b/.github/workflows/ghcr_deploy.yml index 94e0ff71c32..f3ac013eaba 100644 --- a/.github/workflows/ghcr_deploy.yml +++ b/.github/workflows/ghcr_deploy.yml @@ -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