File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -2,20 +2,23 @@ name: Changeset Release
22run-name : Changeset Release ${{ github.actor != 'R00-B0T' && '- Create PR' || '- Update Changelog' }}
33
44on :
5+ workflow_dispatch :
56 pull_request :
67 types : [closed, opened, labeled]
78
89env :
910 REPO_PATH : ${{ github.repository }}
11+ GIT_REF : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || 'main' }}
1012
1113jobs :
1214 # Job 1: Create version bump PR when changesets are merged to main
1315 changeset-pr-version-bump :
1416 if : >
15- github.event_name == 'pull_request' &&
17+ ( github.event_name == 'pull_request' &&
1618 github.event.pull_request.merged == true &&
1719 github.event.pull_request.base.ref == 'main' &&
18- github.actor != 'R00-B0T'
20+ github.actor != 'R00-B0T' ) ||
21+ github.event_name == 'workflow_dispatch'
1922 runs-on : ubuntu-latest
2023 permissions :
2124 contents : write
2528 uses : actions/checkout@v4
2629 with :
2730 fetch-depth : 0
28- ref : ${{ github.event.pull_request.head.sha }}
31+ ref : ${{ env.GIT_REF }}
2932
3033 - name : Setup Node.js
3134 uses : actions/setup-node@v4
You can’t perform that action at this time.
0 commit comments