Skip to content

Commit

Permalink
fix(workflows): try using shared workflows as jobs instead of steps (#12
Browse files Browse the repository at this point in the history
)

* fix(workflows): try using shared workflows as jobs instead of steps

* fix(workflows): output the release_created parameter

so that it can be used by the other shared workflow

* ci(workflows): try out the release-please workflow that returns an output

* chore(workfows): reference the latest tag again
  • Loading branch information
aimeerivers authored Nov 29, 2023
1 parent ef7cadd commit cdbb7ef
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/release-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@ permissions:
pull-requests: write

jobs:
release-and-publish:
runs-on: ubuntu-latest
steps:
- name: Release Please
uses: hedia-team/.github/.github/workflows/release-please.yml@latest
id: release
release:
uses: hedia-team/.github/.github/workflows/release-please.yml@latest

- name: Publish Please
if: steps.release.outputs.release_created == 'true'
uses: hedia-team/.github/.github/workflows/publish-please.yml@latest
with:
github_ref: ${{ github.ref }}
publish:
needs: release
if: needs.release.outputs.release_created == 'true'
uses: hedia-team/.github/.github/workflows/publish-please.yml@latest
secrets: inherit
with:
github_ref: ${{ github.ref }}
7 changes: 7 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Release Please

on:
workflow_call:
outputs:
release_created:
description: "Whether or not a release was created"
value: ${{ jobs.release-please.outputs.release_created }}

permissions:
contents: write
Expand All @@ -18,5 +22,8 @@ jobs:
)
steps:
- uses: google-github-actions/release-please-action@v3
id: release-please
with:
release-type: node
outputs:
release_created: ${{ steps.release-please.outputs.release_created }}

0 comments on commit cdbb7ef

Please sign in to comment.