File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Trigger OS merge action in TTI repo
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - ' v3.*'
7+ types :
8+ - closed
9+
10+ jobs :
11+ trigger_merge :
12+ name : Trigger OS merge action in TTI repo
13+ if : ${{ github.repository == 'TheThingsNetwork/lorawan-stack' && github.event.pull_request.merged == true }}
14+ runs-on : ubuntu-24.04
15+ steps :
16+ - name : Trigger OS merge action in TTI repo
17+ uses : actions/github-script@v7
18+ with :
19+ github-token : ${{ secrets.BOT_TOKEN }}
20+ script : |
21+ const resp = await github.rest.repos.createDispatchEvent({
22+ owner: 'TheThingsIndustries',
23+ repo: 'lorawan-stack',
24+ event_type: 'merge-os-to-enterprise'
25+ });
26+ if (resp.status !== 204) {
27+ throw new Error(`Failed to trigger OS merge action: ${resp.status} ${resp.statusText}`);
28+ }
29+ console.log('Triggered OS merge action in TTI repo');
You can’t perform that action at this time.
0 commit comments