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:
|
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
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
.git/
|
.git/
|
||||||
.idea/
|
.idea/
|
||||||
|
.DS_Store
|
||||||
zapp.yaml
|
zapp.yaml
|
||||||
Loading…
Reference in New Issue
Block a user