Skip to content

Commit

Permalink
Fixed job name of change-dir job for if-clause
Browse files Browse the repository at this point in the history
Add debug job
  • Loading branch information
meffmadd committed Jul 8, 2024
1 parent f137ddc commit 12bd8a5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,19 @@ jobs:
- id: outputStep
run: echo "changeDirs=${{ steps.changeDirsStep.outputs.all_changed_files }}" >> $GITHUB_OUTPUT

debug_output:
runs-on: ubuntu-latest
needs: changed-dirs
steps:
- name: test
run: |
echo "${{ needs.changed-dirs.outputs.changeDirs }}"
docker:
runs-on: ubuntu-latest
needs:
- changed-dirs
if: startsWith(needs.init.outputs.changeDirs, 'operator') || startsWith(needs.init.outputs.changeDirs, 'server') || startsWith(needs.init.outputs.changeDirs, '.github')
if: startsWith(needs.changed-dirs.outputs.changeDirs, 'operator') || startsWith(needs.changed-dirs.outputs.changeDirs, 'server')
strategy:
matrix:
include:
Expand Down Expand Up @@ -76,7 +84,7 @@ jobs:

- name: Build and push
uses: docker/build-push-action@v6
if: startsWith(needs.init.outputs.changeDirs, matrix.directory)
if: startsWith(needs.changed-dirs.outputs.changeDirs, matrix.directory)
with:
context: ${{ matrix.directory }}
file: ./${{ matrix.directory }}/Dockerfile
Expand Down

0 comments on commit 12bd8a5

Please sign in to comment.