-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: 👷 modulize analyse services action
Signed-off-by: Manuel Ruck <[email protected]>
- Loading branch information
Manuel Ruck
committed
Oct 21, 2023
1 parent
a08ed09
commit dc4ce66
Showing
4 changed files
with
57 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Get Changed Packages | ||
|
||
on: | ||
workflow_call: | ||
outputs: | ||
CHANGED_PACKAGES: | ||
value: ${{ jobs.analyse-changed-packages.outputs.changedPackages }} | ||
|
||
jobs: | ||
analyse-changed-packages: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
changedPackages: ${{ steps.changed-packages.outputs.CHANGED_PACKAGES }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
run_install: false | ||
|
||
- run: | | ||
SINCE=$(git rev-list --tags --max-count=1) | ||
echo SINCE=$SINCE >> $GITHUB_OUTPUT | ||
echo SINCE=$SINCE | ||
id: since | ||
- run: | | ||
pnpm list -r --json --filter "...[$SINCE]" | jq '[.[] | select(.private == false) | {name, path}]' > ./tmp.json | ||
CHANGED_PACKAGES=$(jq '[.[] | .name]' ./tmp.json) | ||
echo CHANGED_PACKAGES=$CHANGED_PACKAGES >> $GITHUB_OUTPUT | ||
echo CHANGED_PACKAGES=$CHANGED_PACKAGES | ||
id: changed-packages | ||
env: | ||
SINCE: ${{ steps.since.outputs.SINCE }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters