-
Notifications
You must be signed in to change notification settings - Fork 273
[AAE-32905] - Improving ADF PR workflow #10720
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
base: develop
Are you sure you want to change the base?
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
follow the naming convention
_build_libs.yaml
name: "Build Lib Workflow" | ||
|
||
on: | ||
workflow_call: {} |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\i would prefer to have JS script or node action ( preferred)
c32eec8
to
e5295e5
Compare
|
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: