Compare commits

..

1 Commits

Author SHA1 Message Date
240304a191 attempting to make a branch merge to master
All checks were successful
MVS Upload & Execute / upload-and-run (pull_request) Successful in 18s
2025-10-19 15:44:08 +01:00
4 changed files with 7 additions and 12 deletions

View File

@ -11,8 +11,6 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Full history for git diff
- name: Prepare environment
id: setup
@ -44,9 +42,8 @@ jobs:
# Fallback to all .c/.bas files if no changes or no previous commit
if [ -z "$CHANGED_FILES" ]; then
echo "=== Debug: No changes found; running fallback find ==="
# Find newest .c/.bas by modification time (sort -nr on %T@ timestamp)
CHANGED_FILES=$(find . -type f \( -name "*.c" -o -name "*.bas" \) -printf '%T@ %p\n' 2>/dev/null | sort -nr | cut -d' ' -f2- | head -1)
echo "Fallback files (newest first): '${CHANGED_FILES}'"
CHANGED_FILES=$(find . -type f \( -name "*.c" -o -name "*.bas" \) | head -1)
echo "Fallback files: '${CHANGED_FILES}'"
echo "=== Debug: Fallback complete ==="
fi
@ -78,4 +75,4 @@ jobs:
- name: Report Status
run: |
echo "Upload/Compile complete! Check TK5 JES for JOB ${{ steps.files.outputs.member }} output."
echo "Upload/Compile complete! Check TK5 JES for JOB ${{ steps.files.outputs.member }} output."

View File

@ -1,6 +1,6 @@
//SIEVE07 JOB (GCC),'Sieve 7 Example',
//SIEVE06 JOB (GCC),'Sieve 6 Example',
// NOTIFY=@05054,CLASS=A,MSGCLASS=H,
// MSGLEVEL=(1,1),REGION=4M,TIME=1440
//* Compile Step
//STEP1 EXEC GCCCG,INFILE='@05054.SRCLIB.C(SIEVE07)'
//STEP1 EXEC GCCCG,INFILE='@05054.SRCLIB.C(SIEVE06)'
//

View File

@ -47,8 +47,7 @@ def upload_source(local_file, dataset_name, member_name, mvshost=MVSHOST):
try:
# Use cat to read the file and pipe to netcat
# cmd = f"cat {tmpfile_path} | nc -w3 {mvshost} {RDRPORT}"
cmd = f"nc -w 5 {mvshost} {RDRPORT} < {tmpfile_path}"
cmd = f"cat {tmpfile_path} | nc -w1 {mvshost} {RDRPORT}"
subprocess.run(cmd, shell=True, check=True)
print(f"Uploaded {local_file} to {dataset_name}({member_name})")
return 0
@ -67,8 +66,7 @@ def submit_jcl(job, mvshost="oldcomputernerd.com"):
print(f"JCL file {subjcl} not found")
return 1
subcmd = f"nc -w 5 {mvshost} {RDRPORT} < {subjcl}"
# subcmd = f"cat {subjcl} | nc -w3 {mvshost} {RDRPORT}"
subcmd = f"cat {subjcl} | nc -w1 {mvshost} {RDRPORT}"
try:
subprocess.run(subcmd, shell=True, check=True)