Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 240304a191 |
@ -11,8 +11,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
fetch-depth: 0 # Full history for git diff
|
|
||||||
|
|
||||||
- name: Prepare environment
|
- name: Prepare environment
|
||||||
id: setup
|
id: setup
|
||||||
@ -44,9 +42,8 @@ jobs:
|
|||||||
# Fallback to all .c/.bas files if no changes or no previous commit
|
# Fallback to all .c/.bas files if no changes or no previous commit
|
||||||
if [ -z "$CHANGED_FILES" ]; then
|
if [ -z "$CHANGED_FILES" ]; then
|
||||||
echo "=== Debug: No changes found; running fallback find ==="
|
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" \) | head -1)
|
||||||
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: '${CHANGED_FILES}'"
|
||||||
echo "Fallback files (newest first): '${CHANGED_FILES}'"
|
|
||||||
echo "=== Debug: Fallback complete ==="
|
echo "=== Debug: Fallback complete ==="
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -78,4 +75,4 @@ jobs:
|
|||||||
|
|
||||||
- name: Report Status
|
- name: Report Status
|
||||||
run: |
|
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,
|
// NOTIFY=@05054,CLASS=A,MSGCLASS=H,
|
||||||
// MSGLEVEL=(1,1),REGION=4M,TIME=1440
|
// MSGLEVEL=(1,1),REGION=4M,TIME=1440
|
||||||
//* Compile Step
|
//* 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:
|
try:
|
||||||
# Use cat to read the file and pipe to netcat
|
# Use cat to read the file and pipe to netcat
|
||||||
# cmd = f"cat {tmpfile_path} | nc -w3 {mvshost} {RDRPORT}"
|
cmd = f"cat {tmpfile_path} | nc -w1 {mvshost} {RDRPORT}"
|
||||||
cmd = f"nc -w 5 {mvshost} {RDRPORT} < {tmpfile_path}"
|
|
||||||
subprocess.run(cmd, shell=True, check=True)
|
subprocess.run(cmd, shell=True, check=True)
|
||||||
print(f"Uploaded {local_file} to {dataset_name}({member_name})")
|
print(f"Uploaded {local_file} to {dataset_name}({member_name})")
|
||||||
return 0
|
return 0
|
||||||
@ -67,8 +66,7 @@ def submit_jcl(job, mvshost="oldcomputernerd.com"):
|
|||||||
print(f"JCL file {subjcl} not found")
|
print(f"JCL file {subjcl} not found")
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
subcmd = f"nc -w 5 {mvshost} {RDRPORT} < {subjcl}"
|
subcmd = f"cat {subjcl} | nc -w1 {mvshost} {RDRPORT}"
|
||||||
# subcmd = f"cat {subjcl} | nc -w3 {mvshost} {RDRPORT}"
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
subprocess.run(subcmd, shell=True, check=True)
|
subprocess.run(subcmd, shell=True, check=True)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user