Skip to content

Commit

Permalink
chore: support 401
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssabaum committed May 9, 2024
1 parent 1284d86 commit 96838c9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
5 changes: 5 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ async function requestWorkflow({
return
}

if (result.status === 402) {
core.warning(
'Your Graphite plan does not support the CI Optimizer. Please upgrade your plan to use this feature.'
)
core.setOutput('skip', false)
return
}

if (result.status !== 200) {
const body = JSON.stringify({
token: graphite_token,
Expand Down

0 comments on commit 96838c9

Please sign in to comment.