We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14f3e36 commit 4f9792bCopy full SHA for 4f9792b
1 file changed
.github/workflows/trigger-os-merge.yml
@@ -11,6 +11,7 @@ jobs:
11
- name: Trigger OS merge action in TTI repo
12
uses: actions/github-script@v7
13
with:
14
+ github-token: ${{ secrets.BOT_TOKEN }}
15
script: |
16
const resp = await github.rest.repos.createDispatchEvent({
17
owner: 'TheThingsIndustries',
@@ -21,7 +22,7 @@ jobs:
21
22
pull_request_number: context.payload.pull_request.number,
23
},
24
});
- if (resp.status !== 204) {
25
+ if (resp.status === 204) {
26
throw new Error(`Failed to trigger OS merge action: ${resp.status} ${resp.statusText}`);
27
}
28
console.log('Triggered OS merge action in TTI repo');
0 commit comments