Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Y.Hisaki <[email protected]>
  • Loading branch information
yhisaki committed Oct 7, 2024
1 parent a0bda45 commit d2dea8b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build-and-test-differential.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,18 @@ jobs:
id: get-modified-packages
uses: autowarefoundation/autoware-github-actions/get-modified-packages@v1

- name: Get required packages
id: get-required-packages
uses: mikefarah/yq@master
with:
cmd: yq '.[]' clang-tidy-required-packages.yaml

- name: Get target packages
id: get-target-packages
run: |
sudo snap install yq
PACKAGES=$(yq e '.[]' clang-tidy-required-packages.yaml | grep -Fxf - <(echo "${{ steps.get-modified-packages.outputs.modified-packages }}" | tr ' ' '\n') | xargs)
echo "${{ steps.get-required-packages.outputs.result }}" > required_packages.txt
echo "${{ steps.get-modified-packages.outputs.modified-packages }}" | tr ' ' '\n' > modified_packages.txt
PACKAGES=$(grep -Fxf required_packages.txt modified_packages.txt | xargs)
echo "target-packages=${PACKAGES}" >> $GITHUB_OUTPUT
shell: bash

Expand Down

0 comments on commit d2dea8b

Please sign in to comment.