-
Notifications
You must be signed in to change notification settings - Fork 316
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
build: run codegen from GitHub actions #621
Conversation
4e8dd4b
to
5c08ba7
Compare
5c08ba7
to
dab7075
Compare
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 great with one suggestion
.github/workflows/codegen.yml
Outdated
python-version: 2.7 | ||
- id: find-preferred-versions | ||
run: | | ||
versions=$( cat discovery-artifact-manager/discoveries/index.json | jq -r '[.items[] | select(.name == "${{ matrix.service }}" and .name != "discovery" and .name != "websecurityscanner") | select(.name == "admin" or .preferred).version] | join(",")' ) |
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.
Can we either clean this logic up to make it more readable, or define the logic elsewhere?
Also, I don't think this really needs to be here... can't we ensure "discovery" and "websecurityscanner" don't show up in matrix.service
instead?
select(.name == "${{ matrix.service }}" and .name != "discovery" and .name != "websecurityscanner") |
If not, we can add a different step to exclude them, such as:
if: ${{ matrix.service != "discovery" and matrix.service != "websecurityscanner" }}
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.
I can't update the initial list (it's a shared external workflow that lists all the available services), but I should be able to exclude separately via a matrix exclusion or a separate if
clause.
This switches codegen to per-service PRs created via GitHub actions. Codegen is started nightly.
Example: chingor13#3