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

Replace interactions with GitHub to be run via gh cli in validate-n-build-api.yml #726

Open
ygrishajev opened this issue Jan 27, 2025 · 0 comments

Comments

@ygrishajev
Copy link
Contributor

Currently, our workflow uses curl commands to interact with GitHub's API. We should modernize this by using the official GitHub CLI (gh) which provides a more robust and maintainable way to interact with GitHub.

Purpose

Replace all curl commands and other possible interactions with equivalent GitHub CLI commands for better maintainability and reliability.

Grounds

  • More readable and maintainable code
  • Better error handling and authentication
  • Native GitHub CLI features like automatic retries
  • Consistent with modern GitHub practices

Implementation

Update .github/workflows/validate-n-build-api.yml:

  1. Add GitHub CLI setup and authentication
  2. Replace curl commands with equivalent gh commands
  3. Update permissions if needed
  4. Add proper error handling
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

No branches or pull requests

1 participant