Skip to content

Commit 8fac8ea

Browse files
build: update workflow to handle outputs from semantic-release
1 parent 6aa927a commit 8fac8ea

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/test-release-publish.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ jobs:
3838
needs: test
3939
if: github.ref == 'refs/heads/main' && needs.test.result == 'success'
4040
outputs:
41-
release-outputs: ${{ steps.release.outputs }}
41+
last_release_version: ${{ steps.release.outputs.last_release_version }}
42+
new_release_version: ${{ steps.release.outputs.new_release_version }}
43+
new_release_published: ${{ steps.release.outputs.new_release_published }}
4244
steps:
4345
- name: Checkout
4446
uses: actions/checkout@v4
@@ -65,7 +67,7 @@ jobs:
6567
deploy:
6668
runs-on: ubuntu-latest
6769
needs: release
68-
if: github.ref == 'refs/heads/main' && (needs.release.outputs.release-outputs.new_release_published == 'true' || github.event.inputs.force-docker == true)
70+
if: github.ref == 'refs/heads/main' && (needs.release.outputs.new_release_published == 'true' || github.event.inputs.force-docker == true)
6971
steps:
7072
- name: Checkout
7173
uses: actions/checkout@v4
@@ -105,7 +107,7 @@ jobs:
105107
push: true
106108
tags: |
107109
godaddy/timings:latest
108-
godaddy/timings:${{ needs.release.outputs.release-outputs.new_release_version }}
110+
godaddy/timings:${{ needs.release.outputs.new_release_version }}
109111
cache-from: type=local,src=/tmp/.buildx-cache
110112
cache-to: type=local,dest=/tmp/.buildx-cache
111113

0 commit comments

Comments
 (0)