Skip to content

Commit 6729257

Browse files
chore: modify workflows to skip publish upon beta release (#1406)
* chore: modify workflows to skip publish upon beta release * chore: modify condition
1 parent d100d2d commit 6729257

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

.github/workflows/onRelease.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,11 @@ jobs:
2929
githubTag: ${{ github.event.release.tag_name || inputs.tag }}
3030

3131
secrets: inherit
32+
33+
publish-bundle:
34+
if: ${{ success() && needs.getDistTag.outputs.tag == '' }}
35+
uses: ./.github/workflows/releaseWithCoreBundle.yml
36+
needs: [getDistTag, npm]
37+
with:
38+
branch: 'main'
39+
secrets: inherit
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
name: publish source-deploy-retrieve-bundle
22
on:
3-
workflow_run:
4-
workflows:
5-
- publish
6-
types:
7-
- completed
3+
workflow_call:
4+
inputs:
5+
branch:
6+
description: 'Set the branch to use for release'
7+
type: string
8+
required: false
9+
default: 'main'
810
workflow_dispatch:
911
inputs:
1012
branch:
@@ -15,8 +17,8 @@ on:
1517

1618
jobs:
1719
call-release-workflow:
18-
if: ${{ inputs.branch || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success')}}
20+
if: ${{ inputs.branch }}
1921
uses: forcedotcom/bundle-publish-scripts/.github/workflows/releaseWithCoreBundle.yml@main
2022
secrets: inherit
2123
with:
22-
branch: ${{ inputs.branch || 'main' }}
24+
branch: ${{ inputs.branch }}

0 commit comments

Comments
 (0)