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

refactor(setup-argo): refactor following feedback #215

Merged
merged 4 commits into from
Aug 15, 2024
Merged

Conversation

Duologic
Copy link
Member

Refactor this action based on mob session and review feedback in relation to #212

@Duologic Duologic requested a review from a team as a code owner August 15, 2024 12:32
@Duologic Duologic force-pushed the duologic/setup-argo branch from 631d7e4 to 7613019 Compare August 15, 2024 12:36
@Duologic Duologic changed the title Refactor setup-argo refactor(setup-argo) Aug 15, 2024
@Duologic Duologic force-pushed the duologic/setup-argo branch from 7613019 to 61be0db Compare August 15, 2024 12:39
@Duologic Duologic changed the title refactor(setup-argo) refactor(setup-argo): refactor following feedback Aug 15, 2024
env:
OS: ${{ runner.os }}
run: |
OS=$(echo "$OS" | tr '[:upper:]' '[:lower:]')
Copy link
Member Author

Choose a reason for hiding this comment

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

@iainlane I can't do the same as on #216 because I also need to lowercase it for argo.

Copy link
Member

Choose a reason for hiding this comment

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

Setting up both the variables in one step with a couple of case statements might be the most straightforward

Copy link
Member Author

Choose a reason for hiding this comment

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

What's wrong with the current script? First lowercase it, then s/macos/darwin.

Copy link
Member Author

Choose a reason for hiding this comment

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

Merging so I can keep testing it, we can iterate on the finer details in a follow up.

Copy link
Member

Choose a reason for hiding this comment

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

I find it a bit convoluted doing all these steps when you could directly map the values

Copy link
Member

@iainlane iainlane left a comment

Choose a reason for hiding this comment

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

Looks good 👍

A quick README would be nice if you have a sec for that

env:
OS: ${{ runner.os }}
run: |
OS=$(echo "$OS" | tr '[:upper:]' '[:lower:]')
Copy link
Member

Choose a reason for hiding this comment

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

Setting up both the variables in one step with a couple of case statements might be the most straightforward

@Duologic Duologic force-pushed the duologic/setup-argo branch from 422ab12 to ef32e14 Compare August 15, 2024 20:53
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.

2 participants