Skip to content

Commit

Permalink
chore(.github/workflows/release): needs.release instead of `needs.j…
Browse files Browse the repository at this point in the history
…obs.release`
  • Loading branch information
guesant committed Oct 9, 2024
1 parent a1d91fd commit 329903d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .changeset/brave-yaks-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@ladesa-ro/especificacao-definitions": patch
"@ladesa-ro/especificacao-dotnet": patch
"@ladesa-ro/especificacao-json-schema": patch
"@ladesa-ro/especificacao": patch
---

chore(.github/workflows/release): `needs.release` instead of `needs.jobs.release`
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,20 @@ jobs:
NPM_CONFIG_PROVENANCE: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

outputs:
runs-on: ubuntu-latest
needs: [release]

steps:
- name: print outputs (for debug purposes only)
run: echo '${{ toJSON(needs.release.outputs) }}'

publish-dotnet:
name: Publish to the NuGet registry
runs-on: ubuntu-latest

needs: [release]
if: needs.jobs.release.outputs.published == 'true'
if: needs.release.outputs.published == 'true'

steps:
- name: Checkout code
Expand All @@ -98,7 +106,7 @@ jobs:
runs-on: ubuntu-latest

needs: [release]
if: needs.jobs.release.outputs.published == 'true'
if: needs.release.outputs.published == 'true'

permissions:
actions: read
Expand Down

0 comments on commit 329903d

Please sign in to comment.