Skip to content

Commit

Permalink
[BUG] Fix Github release latest action (#2937)
Browse files Browse the repository at this point in the history
## Description of changes
Fix to allow Github action to set a version release as the latest
version

## Test plan
Make a release and verify

## Documentation Changes
N/A
  • Loading branch information
itaismith authored Oct 11, 2024
1 parent 1bd9295 commit fcf9db0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/release-chromadb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ jobs:
id: builddate
run: echo "builddate=$(date +'%Y-%m-%dT%H:%M')" >> $GITHUB_OUTPUT
- name: Release Tagged Version
uses: ncipollo/release-action@v1.11.1
uses: ncipollo/release-action@v1.14.0
if: ${{ needs.check-tag.outputs.tag_matches == 'true' }}
with:
body: |
Expand All @@ -214,7 +214,8 @@ jobs:
Github Container Registry Image: `${{ env.GHCR_IMAGE_NAME }}:${{ needs.get-version.outputs.version }}`
DockerHub Image: `${{ env.DOCKERHUB_IMAGE_NAME }}:${{ needs.get-version.outputs.version }}`
artifacts: "dist/chromadb-${{needs.get-version.outputs.version}}.tar.gz"
prerelease: true
prerelease: false
makeLatest: true
generateReleaseNotes: true
- name: Update Tag
uses: richardsimko/update-tag@v1.0.5
Expand All @@ -225,7 +226,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release Latest
uses: ncipollo/release-action@v1.14.0
if: ${{ needs.check-tag.outputs.tag_matches == 'true' }}
if: ${{ needs.check-tag.outputs.tag_matches != 'true' }}
with:
tag: "latest"
name: "Latest"
Expand All @@ -239,8 +240,8 @@ jobs:
artifacts: "dist/chromadb-${{needs.get-version.outputs.version}}.tar.gz"
allowUpdates: true
removeArtifacts: true
prerelease: ${{ needs.check-tag.outputs.tag_matches != 'true' }}
makeLatest: ${{ needs.check-tag.outputs.tag_matches == 'true' }}
prerelease: true


release-cloudformation:
name: Release CloudFormation
Expand Down

0 comments on commit fcf9db0

Please sign in to comment.