update workflow to only run when a submit is necessary
This commit is contained in:
parent
552103e7a2
commit
dcdd3c8f70
@ -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
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
.git/
|
||||
.idea/
|
||||
.DS_Store
|
||||
zapp.yaml
|
||||
Loading…
Reference in New Issue
Block a user