Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 240304a191 |
@ -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."
|
||||
|
||||
@ -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)'
|
||||
//
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user