Skip to content

Commit 01ce0d6

Browse files
committed
🔄 synced local '.github/workflows' with remote '.dispatcher'
1 parent 8e1ff3c commit 01ce0d6

3 files changed

Lines changed: 28 additions & 98 deletions

File tree

‎.github/workflows/auto-merge.yml‎

Lines changed: 0 additions & 56 deletions
This file was deleted.

‎.github/workflows/create-labels.yml‎

Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,33 @@
11
name: Quickpick Dispatcher
22

33
on:
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

1116
jobs:
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"}'

0 commit comments

Comments
 (0)