[AAE-32905] - Improving ADF PR workflow#10720
Conversation
2c0a21d to
43887ff
Compare
|
in my opinion it would be better to have the generate step for the specific target instead of 1 global build unit |
75cea0b to
8537138
Compare
| @@ -0,0 +1,52 @@ | |||
| name: "Build Lib Workflow" | |||
There was a problem hiding this comment.
follow the naming convention
_build_libs.yaml
| name: "Build Lib Workflow" | ||
|
|
||
| on: | ||
| workflow_call: {} |
There was a problem hiding this comment.
why do u need it? if there are no inputs
| AFFECTED_UNIT=$(npx nx show projects --affected --target=test --base=origin/$BASE_REF --select=projects --plain --exclude=cli,stories,eslint-angular) | ||
| echo "Affected projects for BUILD : $AFFECTED_BUILD" | ||
| BUILD_MATRIX_JSON=$(echo $AFFECTED_BUILD | xargs -n1 | jq -R -s -c 'split("\n")[:-1] | map({ "project": . })') | ||
| BUILD_MATRIX_JSON=$(echo "$BUILD_MATRIX_JSON" | tr -d '\n' | sed 's/"$//') |
There was a problem hiding this comment.
why don t get json from the show instead of plain?
| - name: Generate affected projects matrix | ||
| id: set-matrix | ||
| run: | | ||
| BASE_REF="${{ github.event.pull_request.base.ref }}" |
There was a problem hiding this comment.
\i would prefer to have JS script or node action ( preferred)
c32eec8 to
e5295e5
Compare
|
|
@VitoAlbano |



Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x")
What is the current behaviour? (You can also link to an open issue here)
What is the new behaviour?
Does this PR introduce a breaking change? (check one with "x")
If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information: