We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2747bad commit 9e3bbb1Copy full SHA for 9e3bbb1
.github/workflows/backend.yml
@@ -32,16 +32,14 @@ jobs:
32
version: v1.58
33
working-directory: backend
34
35
- # this check will exit non-zero when grep fails to find a match
36
- # but that status is used in later if statements hence continue on error
37
- name: Check for changes in backend/
38
- id: backendDiff
39
- run: git --no-pager diff --name-only origin/main HEAD | grep backend/
40
- continue-on-error: true
41
-
+ id: diff
+ run: echo "files_changed=$(git --no-pager diff --name-only origin/main HEAD)" >> $GITHUB_OUTPUT
+
42
build:
43
name: Build and Push
44
- if: jobs.lint.steps.backendDiff.outcome == 'success'
+ needs: lint
+ if: contains(needs.lint.outputs.files_changed, 'backend/')
45
environment: DEV
46
runs-on: ubuntu-latest
47
permissions:
0 commit comments