Skip to content

Commit

Permalink
Merge pull request #8 from cern-vc/develop
Browse files Browse the repository at this point in the history
💚 Disable publish on no release
  • Loading branch information
SamuelGuillemet authored Aug 11, 2023
2 parents ba21577 + 50cca5f commit ed50aa5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ on:
jobs:
publish-npm:
runs-on: ubuntu-latest
# Disable this job if the version output of the workflow_run workflow is empty
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/release-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,11 @@ jobs:
outputs:
tag_name: ${{ steps.release.outputs.tag_name }}
version: ${{ steps.release.outputs.version }}

fail-on-empty-release:
needs: release-on-push
runs-on: ubuntu-latest
if: ${{ needs.release-on-push.outputs.version == '' }}
steps:
- name: Fail on empty release
run: exit 1

0 comments on commit ed50aa5

Please sign in to comment.