Skip to content

Commit

Permalink
chore: modify workflows to skip publish upon beta release (#1406)
Browse files Browse the repository at this point in the history
* chore: modify workflows to skip publish upon beta release

* chore: modify condition
  • Loading branch information
CristiCanizales authored Aug 28, 2024
1 parent d100d2d commit 6729257
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/onRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,11 @@ jobs:
githubTag: ${{ github.event.release.tag_name || inputs.tag }}

secrets: inherit

publish-bundle:
if: ${{ success() && needs.getDistTag.outputs.tag == '' }}
uses: ./.github/workflows/releaseWithCoreBundle.yml
needs: [getDistTag, npm]
with:
branch: 'main'
secrets: inherit
16 changes: 9 additions & 7 deletions .github/workflows/releaseWithCoreBundle.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: publish source-deploy-retrieve-bundle
on:
workflow_run:
workflows:
- publish
types:
- completed
workflow_call:
inputs:
branch:
description: 'Set the branch to use for release'
type: string
required: false
default: 'main'
workflow_dispatch:
inputs:
branch:
Expand All @@ -15,8 +17,8 @@ on:

jobs:
call-release-workflow:
if: ${{ inputs.branch || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success')}}
if: ${{ inputs.branch }}
uses: forcedotcom/bundle-publish-scripts/.github/workflows/releaseWithCoreBundle.yml@main
secrets: inherit
with:
branch: ${{ inputs.branch || 'main' }}
branch: ${{ inputs.branch }}

0 comments on commit 6729257

Please sign in to comment.