Skip to content

Commit 236a0c6

Browse files
chore(ci): modify workflows to skip publish upon beta release (#664)
* chore: modify workflows to skip publish upon beta release * chore: modify condition
1 parent 9993051 commit 236a0c6

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

.github/workflows/onRelease.yml

+8
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
+9-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
name: publish source-tracking-bundle
22
on:
3-
workflow_run:
4-
workflows:
5-
- publish
6-
types:
7-
- completed
8-
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'
910
workflow_dispatch:
1011
inputs:
1112
branch:
@@ -16,8 +17,8 @@ on:
1617

1718
jobs:
1819
call-release-workflow:
19-
if: ${{ inputs.branch || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success')}}
20+
if: ${{ inputs.branch }}
2021
uses: forcedotcom/bundle-publish-scripts/.github/workflows/releaseWithCoreBundle.yml@main
2122
secrets: inherit
2223
with:
23-
branch: ${{ inputs.branch || 'main'}}
24+
branch: ${{ inputs.branch }}

0 commit comments

Comments
 (0)