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

1
.gitignore vendored
View File

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