File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11name : Quickpick Dispatcher
22
33on :
4- push :
5- branches :
6- - main
7- release :
8- types : [published, edited, prereleased]
9- workflow_dispatch :
4+ pull_request :
5+ types :
6+ - closed
7+ branches :
8+ - ' main'
9+ release :
10+ types :
11+ - created
12+ - edited
13+ - prereleased
14+ workflow_dispatch :
1015
1116jobs :
12- dispatch :
13- runs-on : ubuntu-latest
14- steps :
15- - name : Repository Dispatch
16- uses : peter-evans/repository-dispatch@v2
17- with :
18- token : ${{ secrets.GH_ACTIONS }}
19- repository : Bearsampp/bearsampp
20- event-type : module_release_created
21- client-payload : ' {"module": "${{ github.repository }}"}'
17+ dispatch_workflow :
18+ if : |
19+ (github.event_name == 'workflow_dispatch') ||
20+ (github.event_name == 'pull_request' && github.event.pull_request.merged == true) ||
21+ (github.event_name == 'release' && (github.event.action == 'created' || github.event.action == 'edited' || github.event.action == 'prereleased'))
22+ runs-on : ubuntu-latest
23+ steps :
24+ - name : Checkout
25+ uses : actions/checkout@v4
26+
27+ - name : Invoke workflow in another repo with inputs
28+ uses : peter-evans/repository-dispatch@v2
29+ with :
30+ token : ${{ secrets.GH_PAT }}
31+ repository : Bearsampp/Bearsampp
32+ event-type : run-combine-releases
33+ client-payload : ' {"workflow": "combine_releases.yml"}'
You can’t perform that action at this time.
0 commit comments