Skip to content

Commit

Permalink
chore(ci): modify workflows to skip publish upon beta release (#664)
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 29, 2024
1 parent 9993051 commit 236a0c6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 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
17 changes: 9 additions & 8 deletions .github/workflows/releaseWithCoreBundle.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: publish source-tracking-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 @@ -16,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 236a0c6

Please sign in to comment.