Skip to content

Commit

Permalink
Handle failing changed-directories on test first push (#964)
Browse files Browse the repository at this point in the history
  • Loading branch information
tombeynon authored Jan 14, 2025
1 parent 8bb0f9f commit 524cc11
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- uses: sankichi92/list-changed-directories@v1
id: list_changed_directories
if: ${{ !env.ACT }}
continue-on-error: true
with:
target-file: build.yml
common-dependency-paths: |-
Expand All @@ -44,8 +45,9 @@ jobs:
if [ -n "${{ env.PROJECTS }}" ]; then
echo "matrix=$(echo "${{ env.PROJECTS }}" | sed 's/, */,/g' | tr ',' '\n' | jq --raw-input . | jq -c --slurp .)" >> $GITHUB_OUTPUT
else
if [[ -n "${{ toJson(needs.list_changed_directories.outputs.projects) }}" ]]; then
echo "matrix=${{ toJson(needs.list_changed_directories.outputs.projects) }}" >> $GITHUB_OUTPUT
changed_directories=${{ toJson(needs.list_changed_directories.outputs.projects) }}
if [[ -n "$changed_directories" && "$changed_directories" != "null" ]]; then
echo "matrix=$changed_directories" >> $GITHUB_OUTPUT
else
echo "matrix=$(find * -type f -name build.yml | xargs dirname | sort | uniq | jq --raw-input . | jq -c --slurp .)" >> $GITHUB_OUTPUT
fi
Expand Down

0 comments on commit 524cc11

Please sign in to comment.