Skip to content

Commit 4f9792b

Browse files
committed
ci: Test with success code
1 parent 14f3e36 commit 4f9792b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/trigger-os-merge.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
- name: Trigger OS merge action in TTI repo
1212
uses: actions/github-script@v7
1313
with:
14+
github-token: ${{ secrets.BOT_TOKEN }}
1415
script: |
1516
const resp = await github.rest.repos.createDispatchEvent({
1617
owner: 'TheThingsIndustries',
@@ -21,7 +22,7 @@ jobs:
2122
pull_request_number: context.payload.pull_request.number,
2223
},
2324
});
24-
if (resp.status !== 204) {
25+
if (resp.status === 204) {
2526
throw new Error(`Failed to trigger OS merge action: ${resp.status} ${resp.statusText}`);
2627
}
2728
console.log('Triggered OS merge action in TTI repo');

0 commit comments

Comments
 (0)