update workflow to only run when a submit is necessary

This commit is contained in:
Gregory Gauthier 2026-02-04 14:35:22 +00:00
parent 552103e7a2
commit dcdd3c8f70
3 changed files with 8 additions and 2 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -3,9 +3,14 @@ name: MVS Upload & Execute
on:
push:
branches: [ master ]
paths:
- 'src/**' # Trigger only if src/ (C sources) changes
- 'jcl/**' # Trigger only if jcl/ (JCL for batch jobs) changes
pull_request:
branches: [ master ]
paths:
- 'src/**' # Same for pull requests
- 'jcl/**'
jobs:
upload-and-run:
steps:
@ -66,7 +71,7 @@ jobs:
echo "=== Debug: File detection complete ==="
- name: Upload to PDS and Submit JCL
if: steps.files.outputs.file != ''
if: ${{ steps.files.outputs.file != '' }}
run: |
echo "=== Debug: Starting upload/submit ==="
echo "File: ${{ steps.files.outputs.file }}"

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.git/
.idea/
.DS_Store
zapp.yaml