Skip to content

Commit

Permalink
fix if no changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
lingdie committed Oct 10, 2024
1 parent 769fa35 commit 0adf931
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
has_changes: ${{ steps.set-matrix.outputs.has_changes }}
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -78,9 +79,16 @@ jobs:
echo "matrix=${MODULES}"
echo "matrix=${MODULES}" >> $GITHUB_OUTPUT
if [[ "${MODULES}" == "[]" ]]; then
echo "has_changes=false" >> $GITHUB_OUTPUT
else
echo "has_changes=true" >> $GITHUB_OUTPUT
fi
image-build:
needs:
- determine-changes
if: needs.determine-changes.outputs.has_changes == 'true'
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down

0 comments on commit 0adf931

Please sign in to comment.