Skip to content

Commit 4ffad13

Browse files
author
Seven Du
authored
Update release-please.yml
Signed-off-by: Seven Du <[email protected]>
1 parent 087b4e8 commit 4ffad13

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/release-please.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: release & publish
1+
name: Release & Publish
22
on:
33
push:
44
branches:
@@ -9,20 +9,26 @@ on:
99
- ".github/workflows/release-please.yml"
1010
jobs:
1111
release:
12-
name: release
1312
runs-on: ubuntu-latest
1413
permissions:
1514
contents: write
1615
pull-requests: write
16+
outputs:
17+
release_created: ${{ steps.release.outputs.release_created }}
1718
steps:
1819
- uses: googleapis/release-please-action@v4
1920
id: release
2021
with:
2122
config-file: release-please-config.json
2223
manifest-file: .release-please-manifest.json
2324
publish:
24-
if: ${{ needs.release.steps.release.outputs.release_created }}
25+
if: ${{ needs.release.outputs.release_created }}
2526
needs: release
2627
permissions:
2728
id-token: write
2829
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
30+
demo:
31+
needs: release
32+
runs-on: ubuntu-latest
33+
steps:
34+
- run: echo ${{ toJSON(needs.release) }}

0 commit comments

Comments
 (0)