Skip to content

Commit

Permalink
build: update workflow to handle outputs from semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
mverkerk-godaddy committed Apr 27, 2024
1 parent 6aa927a commit 8fac8ea
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/test-release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ jobs:
needs: test
if: github.ref == 'refs/heads/main' && needs.test.result == 'success'
outputs:
release-outputs: ${{ steps.release.outputs }}
last_release_version: ${{ steps.release.outputs.last_release_version }}
new_release_version: ${{ steps.release.outputs.new_release_version }}
new_release_published: ${{ steps.release.outputs.new_release_published }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -65,7 +67,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
needs: release
if: github.ref == 'refs/heads/main' && (needs.release.outputs.release-outputs.new_release_published == 'true' || github.event.inputs.force-docker == true)
if: github.ref == 'refs/heads/main' && (needs.release.outputs.new_release_published == 'true' || github.event.inputs.force-docker == true)
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -105,7 +107,7 @@ jobs:
push: true
tags: |
godaddy/timings:latest
godaddy/timings:${{ needs.release.outputs.release-outputs.new_release_version }}
godaddy/timings:${{ needs.release.outputs.new_release_version }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

Expand Down

0 comments on commit 8fac8ea

Please sign in to comment.