-
Notifications
You must be signed in to change notification settings - Fork 50
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
Update AKS and EKS action to properly run on schedule #1125
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really good already, small comments.
echo "bundle_versions=${bundle_versions}" >> $GITHUB_OUTPUT | ||
if [[ "${{ github.event_name }}" == "schedule" ]]; then | ||
bundle_versions=$(yq '. | keys' .github/dependencies.yaml -o=json | tr -d '\n') | ||
echo "bundle_versions=${bundle_versions}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not clear to me why we need this line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "echo" is only for displaying the bundle_versions on the output of the action on Github, see here. Do you think it's best to remove this?
Closes #1124.
This PR updates the
deploy-to-aks.yaml
anddeploy-to-eks.yaml
files to properly run on schedule.The current issue that we had to overcome is explained here
To fix this issue, I have condensed the 2 jobs into 1 job that always run, and the
if
statements are located inside runNote that there is an issue when writing multiline strings to $GITHUB_OUTPUT, and that's why we run
tr
to remove all newline characters from the JSON output ofyq
.