Skip to content

Commit bac28d3

Browse files
authored
fix: correctly trigger publish from release (#306)
1 parent 91b0e1a commit bac28d3

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
create-release:
2424
runs-on: ubuntu-latest
2525
name: Create release
26+
outputs:
27+
version: ${{ steps.bump.outputs.version }}
2628
steps:
2729
- name: Checkout sources
2830
uses: actions/checkout@v4
@@ -111,8 +113,10 @@ jobs:
111113
env:
112114
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
113115

114-
- name: Run Publish pipeline
115-
uses: ./.github/workflows/publish.yml
116-
with:
117-
branch: "release/v${{ steps.bump.outputs.version }}"
116+
trigger-publish:
117+
name: Trigger Publish pipeline
118+
needs: create-release
119+
uses: ./.github/workflows/publish.yml
120+
with:
121+
branch: "release/v${{ needs.create-release.outputs.version }}"
118122

0 commit comments

Comments
 (0)