Skip to content

Commit

Permalink
DEVOPS-3537 Check if ridectl is running on actions runner (#154)
Browse files Browse the repository at this point in the history
* Update ci.yml

* check for github-actions env var

---------

Co-authored-by: Vivek Jain <vivek@ridecell.com>
  • Loading branch information
vivekjainx86 and Vivek Jain authored Jan 28, 2025
1 parent 3bce247 commit 7d5ffe2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ func init() {
// Display announcement banner if present
displayAnnouncementBanner()

// Check if ridectl is running on Github actions runner
if os.Getenv("GITHUB_ACTIONS") == "true" {
// Set environment variables for Github actions runner
os.Setenv("RIDECTL_SKIP_AWS_SSO", "true")
os.Setenv("RIDECTL_TSH_CHECK", "false")
}

// check version and update if not latest
if !isLatestVersion() {
skipUpgrade := os.Getenv("RIDECTL_SKIP_UPGRADE")
Expand Down

0 comments on commit 7d5ffe2

Please sign in to comment.