diff --git a/.github/workflows/ghcr_deploy.yml b/.github/workflows/ghcr_deploy.yml index 94e0ff71c..f3ac013ea 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