ci: tolerate command reaction token limits

This commit is contained in:
Vincent Koc
2026-04-29 00:59:23 -07:00
parent 59a0457251
commit 9d8de70c20

View File

@@ -16,6 +16,7 @@ jobs:
runs-on: ubuntu-24.04
permissions:
issues: write
pull-requests: write
env:
CLOWNFISH_APP_ID: ${{ vars.CLOWNFISH_APP_ID || secrets.CLOWNFISH_APP_ID }}
CLOWNFISH_APP_AUTH_ENABLED: ${{ secrets.CLOWNFISH_APP_PRIVATE_KEY != '' && (vars.CLOWNFISH_APP_ID != '' || secrets.CLOWNFISH_APP_ID != '') && '1' || '0' }}
@@ -102,6 +103,10 @@ jobs:
core.info(`${content} reaction already exists on comment ${comment.id}.`);
return;
}
if (error.status === 403 && /resource not accessible by integration/i.test(String(error.message))) {
core.warning(`${content} reaction could not be added with this token: ${error.message}`);
return;
}
throw error;
}
}