Closed cg2121 closed 1 year ago
I think the idea is sound, however the plugin name is defined in the buildspec.json
file (the build script even updates CMakeList.txt
with name and version with the values from it).
So IMO the "correct" change would be a step that parses the JSON file and sets that as an output variable that's then re-used throughout the workflow.
@cg2121 I guess the most portable way would be to add code to the respective "Setup Environment" steps in the workflow to parse the buildspec file and then print that value to $GITHUB_OUTPUT
so you can reuse it in the later workflow steps.
Updated to use the suggestion by @PatTheMav
Description
This generates the plugin name based on the name in the buildspec file.
Motivation and Context
One less file for developers to change.
How Has This Been Tested?
Ran workflow.
Types of changes
Checklist: