Skip to content

Commit

Permalink
fix: dont run release step if no release created
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Oct 14, 2024
1 parent 3a8ae8a commit 00d3651
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ jobs:
release-please:
runs-on: ubuntu-latest
outputs:
version: "${{steps.release.outputs.version }}"
release_created: "${{steps.release.outputs.release_created == 'true' }}"
version: ${{steps.release.outputs.version }}
release_created: ${{steps.release.outputs.release_created == 'true' }}

steps:
- uses: actions/checkout@v4
- uses: googleapis/release-please-action@v4
id: release
- run: echo "${{toJSON(steps.release.outputs.version)}}"
- run: echo "${{toJSON(steps.release.outputs.release_created)}}"
- run: echo "${{toJSON(steps.release.outputs.tag_name)}}"
- run: echo "${{steps.release.outputs.version}}"
- run: echo "${{steps.release.outputs.release_created}}"
- run: echo "${{steps.release.outputs.tag_name}}"

release-container:
runs-on: ubuntu-latest
needs: release-please
if: needs.release-please.outputs.release_created
if: needs.release-please.outputs.release_created == true
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
release-helm:
runs-on: ubuntu-latest
needs: release-please
if: needs.release-please.outputs.release_created
if: needs.release-please.outputs.release_created == true
steps:
- uses: actions/checkout@v4
- name: Configure Git
Expand Down

0 comments on commit 00d3651

Please sign in to comment.