Skip to content

Commit 03fd355

Browse files
feat: Validate Subscription flow Updated (#177)
* Update main.ts * chore: dist updated (#178) * fix: apply audit fixes * fix: apply audit fixes --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2 parents 35d0e60 + 128593d commit 03fd355

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
@@ -16,7 +16,7 @@ async function validateSubscription(): Promise<void> {
1616
try {
1717
await axios.get(API_URL, {timeout: 3000});
1818
} catch (error) {
19-
if (isAxiosError(error) && error.response) {
19+
if (isAxiosError(error) && error.response?.status === 403) {
2020
core.error('Subscription is not valid. Reach out to [email protected]');
2121
process.exit(1);
2222
} else {

0 commit comments

Comments
 (0)