Skip to content

Commit

Permalink
ci: don't run build when no release
Browse files Browse the repository at this point in the history
  • Loading branch information
TimPietrusky committed Jul 26, 2024
1 parent 8f693a7 commit df6d3a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,15 @@ jobs:
GITHUB_TOKEN: ${{ secrets.BLIBLA_SEMANTIC_RELEASE }}

- name: Set environment variables
if: steps.semanticrelease.outputs.new-release-published == 'true'
run: |
echo "DOCKERHUB_REPO=${{ vars.DOCKERHUB_REPO }}" >> $GITHUB_ENV
echo "DOCKERHUB_IMG=${{ vars.DOCKERHUB_IMG }}" >> $GITHUB_ENV
echo "HUGGINGFACE_ACCESS_TOKEN=${{ secrets.HUGGINGFACE_ACCESS_TOKEN }}" >> $GITHUB_ENV
echo "RELEASE_VERSION=${{ steps.semanticrelease.outputs.release-version }}" >> $GITHUB_ENV
- name: Build and push the images to Docker Hub
if: steps.semanticrelease.outputs.new-release-published == 'true'
uses: docker/bake-action@v2
with:
push: true
Expand Down

0 comments on commit df6d3a3

Please sign in to comment.