Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exit with error code if gh-federation failed #51

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

namachan10777
Copy link
Contributor

I changed so that the GitHub action exit abnormally if all retries failed.

@namachan10777 namachan10777 self-assigned this Feb 7, 2024
@namachan10777 namachan10777 requested a review from sksat as a code owner February 7, 2024 05:35
@@ -46,6 +46,8 @@ runs:
}
}

core.setFailed('The request was not successful')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be exit with 0 in successful case if you want to fail like this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh..., I missed it. I will fix it immediately.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

break at L42 -> return

@namachan10777 namachan10777 force-pushed the fix/reponse-error-when-timeout branch from 03257cd to 71201ba Compare February 7, 2024 06:52
@sksat sksat linked an issue Feb 7, 2024 that may be closed by this pull request
@namachan10777 namachan10777 merged commit 8c0dc4c into main Feb 7, 2024
1 check passed
@namachan10777 namachan10777 deleted the fix/reponse-error-when-timeout branch February 7, 2024 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Client should be fail if all retries failed
2 participants