Skip to content

Commit 4a8caad

Browse files
committed
fix: fixed subscription check code
1 parent 9f77606 commit 4a8caad

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ async function validateSubscription(): Promise<void> {
9393
try {
9494
await axios.get(API_URL, {timeout: 3000});
9595
} catch (error) {
96-
if (isAxiosError(error) && error.response) {
96+
if (isAxiosError(error) && error.response?.status === 403) {
9797
core.error('Subscription is not valid. Reach out to [email protected]');
9898
process.exit(1);
9999
} else {

0 commit comments

Comments
 (0)